43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gekkoswave

Hi in this program i want it to run for 720 loops but it keeps stoping short for some reason. There is no compilation error or runtime error. [CODE]import java.util.LinkedList; import java.util.Random; public class Simulation { private LinkedList<Customer> customerList; private int minutesThatHavePast; private int customerNumber; private int customerProcessTime; private int …

Software Development java queue
Member Avatar for jon.kiparsky
0
160
Member Avatar for ubi_ct83

Hi all, i'm developing a web-base system.user enter the data in mysql.my main system retrieve the data using jdbc.my problem is, i dont know how to make the system keep on checking the new data in database.i want it always check the mysql for any new data. i need your …

Software Development java
Member Avatar for ubi_ct83
0
105
Member Avatar for WildBamaBoy

This list box will contain the name of processes that are currently running. My function to update the list first checks to see if it does not contain the name of a process that is running, then adds the process if it needs to. Then it checks to see if …

Software Development
Member Avatar for WildBamaBoy
0
162
Member Avatar for zychos

Doing an assignment to create a struct that holds keywords and then is used with a binary search to counter the total keywords in a program. Below is my code and below it is the errors i get when I attempt to compile it. First question is what is wrong …

Software Development c
Member Avatar for zychos
0
465
Member Avatar for WDrago

All, This is driving me crazy. How come only the last thing I send to a textbox is displayed? In the following example I would expect 'abcdefghi' to be displayed then, 1 second later, '123456789' should be displayed. But the only thing I see is 123456789. What is going on …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
932
Member Avatar for SMITA6076

Is it ever acceptable to make instance variables public? If so, when?

Software Development java
Member Avatar for VernonDozier
0
332
Member Avatar for Jake.20

Can somebody explain to me why every time i subtract currency it displays the negative sign, even if the number used to subtract was small. for example: $ 5.00 - $ 3.00 = $ -2.00

Software Development vb.net
Member Avatar for Jake.20
0
89
Member Avatar for diniboi

Whats up guys? This program has given me nightmares lol. When input is a positive integer, the program should reduce it to prime factors. The integer is less than 900. The program should Output the prime factors as a series that when multiplied together, will return the original integer. If …

Software Development python
Member Avatar for TrustyTony
0
224
Member Avatar for vedro-compota

Hi friends! What is the difference between these two definitions of variables? [CODE]const char *msg; char* const msg;[/CODE] thanks in advance)

Software Development c
Member Avatar for vedro-compota
0
106
Member Avatar for sciprog1

Hello Members, I am trying to add weights to a Graph that is implemented using JGrapht. I keep getting a NullPointerException, which I am unable to understand as all other edges seems to be added fine. I would be grateful for any help. The code so far: [CODE]import org.jgrapht.*; import …

Software Development java
Member Avatar for sciprog1
0
2K
Member Avatar for CrazyMisho

hi,I am trying to write a simple code that visit page every x seconds.I prefer timer function because thread freeze the browser and the program.Somebody whit idea?

Software Development
Member Avatar for Momerath
0
103
Member Avatar for sahil1991

hello frndzz... just wrote a piece of code in c++....bt this didnt create any .DAT file as expected.....dun knw wats wrng.... #include<fstream> #include<iostream> using namespace std; class person { int age; char name[40]; public: void get() { cout<<"enter age:"; cin>>age; cout<<"enter name:"; cin>>name; } void show() { cout<<"age is:"<<age<<endl; cout<<"name …

Software Development c++ file-system ios
Member Avatar for daviddoria
0
136
Member Avatar for mugenoesis

okay i've got a problem with this code its going to be a apart of a word guessing game, the problem is that my code reads the file i want it too, but when i ttry to guess the letter it will only read the first letter, i know that …

Software Development algorithm c++ ios
Member Avatar for daviddoria
0
171
Member Avatar for kesh1000

hi can anyone tell me why the netbeans ide generates a null pointer exception. here my code. for class CustomFileFilter [CODE]import java.io.File; public class CustomFileFilter extends javax.swing.filechooser.FileFilter { private String extension; private String description; public void setDescription(String description) { this.description = description; } public void setExtension(String extension) { this.extension = …

Software Development ide java java-netbeans java-swing
Member Avatar for kesh1000
0
184
Member Avatar for djbuclkle

I am currently writing a program in which you input a word and the program then outputs all of the different ways the characters can be moved round into anagrams. I have wrote a way of turning the command line argument into a char array using the toCharArray() now I …

Software Development java
Member Avatar for JamesCherrill
0
173
Member Avatar for BMPaul

Hello, im a noob with C++ at the moment and Im trying to create a BMP image from pixel data stored in a array. Everything seems to work except that when i look at the file generated in a hex editor i get an extra '00 00' in between the …

Software Development c++ image ios
Member Avatar for gpyrounakis
0
2K
Member Avatar for Gernicha

Hey everyone!! I am having trouble printing the whole of a multidimensional char array. [CODE] #include <iostream> using namespace std; int main(){ char array [5][10] = {"---------", "| |", "| |", "---------"}; cout << array << endl; system ("pause"); return 0; } [/CODE] It just gives me random numbers and …

Software Development c++
Member Avatar for Gernicha
0
187
Member Avatar for vedro-compota

Hi mates!) If somebody can - please explain me - what does mean "[U]the lowest[/U]" in this context - [QUOTE]The open() function shall return a file descriptor for the named file that is [B][U]the lowest[/U][/B] file descriptor not currently open for that process.[/QUOTE] the QUOTE is from here - [URL="http://pubs.opengroup.org/onlinepubs/009695399/functions/open.html"]http://pubs.opengroup.org/onlinepubs/[/URL] …

Software Development c
Member Avatar for vedro-compota
0
185
Member Avatar for guru_iyer

Hey I am trying to do a project on Test Engine. I need to retrieve random rows of questions from access database. I did the following code, but every time I once close and run it again, the sequence of questions is same. How can I change the sequence every …

Software Development dataset microsoft-access
Member Avatar for guru_iyer
0
797
Member Avatar for cwarn23

hi, I have the following code and it compiles on Netbeans with no errors or warnings but when I load the applet in a browser the browser does not display all of the pictures that I got it to draw. The only picture it draws is my_gif. I have tried …

Software Development java java-netbeans java-swing
Member Avatar for cwarn23
0
211
Member Avatar for bahed121

hey all i want to put [B]£[/B] symbol in my textbox but don't have it on keyboard can any one help me? Thanks

Software Development
Member Avatar for abelLazm
1
134
Member Avatar for jdm

I'm working on a simple program, but I help with a part of it. When I click the submit button I need the name field to be cleared and for all of the checkbox to be unchecked. I have the name field done, but I need help with unchecking all …

Software Development java java-swing
Member Avatar for jdm
0
2K
Member Avatar for abelLazm

Can anyone clear my concepts of IsDaylightSavingTime() function of DateTime in C#. I am really confused about it. I want to ask exactly what is the need and use of this function? Thanx

Software Development
Member Avatar for abelLazm
0
164
Member Avatar for hous3aholik

Hi guys im trying to generate 5 random numbers that return a string so i can compare it to a file. so far i have this but i have no idea how to make it a string. Since i have to compare it to the file i mentioned earlier. This …

Software Development c++
Member Avatar for TrustyTony
0
2K
Member Avatar for bahed121

hello I have added a checkbox column in my C1TrueDBGrid i want to check all of the checkboxes with single click i have been looking for a solution i found one for DataGridView which is to add a check box in the header of column and check all of the …

Software Development
Member Avatar for abelLazm
0
510
Member Avatar for tdba.316

Hi! For the past few months I've been self-learning C++ with the book "C++ Primer Plus" by Stephen Prata. After having gotten through chapter 7, I decided to check my progress by writing a little program, Baztro. Baztro stands for Basic Astrology Tool. It asks you for birthdate(s) and will …

Software Development c++ user-interface
Member Avatar for tdba.316
0
578
Member Avatar for bahed121

hey all can any one tell me how to insert a checkbox column in C1TrueDBGrid it is really showing me hell I am stuck in it.. Please please any one help Thanks

Software Development
Member Avatar for bahed121
0
1K
Member Avatar for Anigmalee

Hi All, I try to store Korean langguage in Microsoft jet OLEDB 4.0 database, but I cant retrive it back. [CODE]catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & sDatabaseToCreate & _ ";Jet OLEDB:Engine Type=5;")[/CODE] I try to google around for weeks..but still cant find the solution, I believe microsoft jet 4.0 should …

Software Development vb.net
Member Avatar for Anigmalee
0
108
Member Avatar for swathys

hi, i would like to create an uniqueID where it must add +1 behind the CurrentTranxDateTime for the transaction 1 to 10....I have coded as below but the problem is the number doesnt +1 for each transaction.....any1 have idea to solve this..... eg: 300111 01:45:29 AM 1 300111 01:45:29 AM …

Software Development vb.net
Member Avatar for swathys
0
371
Member Avatar for cossay

The program below crashes anytime I run it, can anyone tell what I have done wrong?. [CODE] #include <iostream> #include <cstring> using namespace std; class Human { private: char *fname; char *srname; char *phone; public: char * getFirstName(); char * getLastName(); char * getPhone(); Human(char *fn, char *sn, char *ph); …

Software Development c++
Member Avatar for Tomi1988
0
145
Member Avatar for Silent Storm

Good afternoon, I'm trying to alter an application that calculates the area of a square using the following guidelines: For the Square class: 1) Add a Private variable named _area 2) Associate the _area variable with a Property procedure called Area 3) Change the CalculateArea method to a Sub procedure. …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
139
Member Avatar for darkbreaker

I am developing a network chat application, I am using Winapi, my main window is a dialog (created from a .rc file). I am looking into a way of doing an text box where my outuput text can be like this: [QUOTE] [COLOR="Green"]Welcome to ##### chat server![/COLOR] [COLOR="Red"]Person1[/COLOR] says: Hi …

Software Development c windows-api
Member Avatar for darkbreaker
0
277
Member Avatar for mrbungle

Greetings, My app saves a bunch of stuff to an XML file. This is my line of code- [CODE] Using writer As XmlWriter = XmlWriter.Create("C:\vdx2k\MWS\RE\EXTReportsInbox\TK" & frmCitation.txtCiteNumber.Text & "Traff.xml", settings)[/CODE] So that saves it at that specific location. I need to duplicate the XML and have it also save in …

Software Development vb.net xml
Member Avatar for mrbungle
0
114
Member Avatar for CrazyMisho

Hello how to read from a file,which contains only nimbers(int) and to record them in an array.It's sounds easy,but i can't do it:( for file example: 1234 4353 2345 2345 2312 1267 I mean they are in collom. Thanks in advance.

Software Development
Member Avatar for Momerath
0
302
Member Avatar for fabio.bozzo

Maybe it's a noob question ... anyway, I create a dynamic number of PictureBox controls. I keep them inside a List. What I want now is to make them clickable: same event handler for all (opening of the image source file) with a parameter. The question is: how can I …

Software Development vb.net
Member Avatar for Luigiview
0
259
Member Avatar for guccitan88

New to Java! We have to create a "sales" 2D array and initialize it with 100.00. Then we have to up the 3rd quarter by 500.00 and then lower the 4th quarter by 50.00. I know there's something simple I'm missing, but I can't quite figure it out. Any help …

Software Development java
Member Avatar for guccitan88
0
131
Member Avatar for Awilson089

Hi, I have a program which needs to accept a date, it can only accept under 30 days, and the entry has to be over 0 My problem is that it accepts anything, it doesnt make sense because i have used the exact layout on other bits of code which …

Software Development c c# c++
Member Avatar for Awilson089
0
103
Member Avatar for Protoroll

I have to read in a file and do dot product calculations on two arrays but I get an error whenever I try to run it. Here is my code, [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { FILE* input; FILE* output; int product=0; int length=0; int* …

Software Development c file-stream file-system
Member Avatar for Protoroll
0
243
Member Avatar for kent5244

Hi, I have some basic knowledge in programming however it is not enough to solve the problem I faced currently. So I would like to ask for the pros for guild and help. I have attached the print screen of my program's GUI 1)From the GUI, the combobox next to …

Software Development c# gui
Member Avatar for kent5244
0
2K
Member Avatar for xjustin

Im trying for a message box to pop up but this code gives me always "Absent".How can i fix this. [CODE] Dim time As Date Dim CurrHour As Integer Dim CurrMinute As Integer time = DateTime.Now CurrHour = time.Hour ' Get current hour value CurrMinute = time.Minute ' Get current …

Software Development vb.net
Member Avatar for xjustin
0
106
Member Avatar for JJHT7439

Alright, I admit that I'm struggling a bit with Java but for the project that I'm trying to do I need to create a bunch of bank accounts and then calculate the interest and return the names of the account holders and their balance and interest, as well as the …

Software Development java
Member Avatar for JJHT7439
0
3K
Member Avatar for plasticfood

[CODE]if(count == 4){ qFinal.enqueue(q.peek()); if(count3 == 0){ System.out.println(qFinal); break; } else{ sort(qFinal); } } [/CODE] this code is inside a while loop, and with the break statement, it should break out of the loop right? instead i think the program also executes the sort(qFinal) method b/c after it prints qFinal …

Software Development java
Member Avatar for masijade
0
193
Member Avatar for bahed121

Hi For my interface i don't want to use the typical rectangle buttons instead i want to use buttons of different shapes can any one help me in this regard

Software Development
Member Avatar for bahed121
0
136
Member Avatar for bahed121

hey can any one tell me how to create text effects in c#.... e.g. flame text

Software Development
Member Avatar for bahed121
1
157
Member Avatar for twigan1015

I need to make a string for a description textbox so later it can be added into a listbox and I dont know how to do this and this is all I got, which isnt much [CODE] Dim desripition As String Private Sub textbox2_TextChanged(ByVal sender As System.Object, ByVal e As …

Software Development vb.net
Member Avatar for codeorder
0
123
Member Avatar for bahed121

I have a combobox which contains the different values from database. However, if the user types another name into the combobox, it is accepted. I want to allow only the names already associated with the control. But there is no readonly property form a combobox in VS 2010

Software Development
Member Avatar for bahed121
0
85
Member Avatar for ashley11

i have a problem to sum up the value. for example: in my richtextbox1: 0.94 0.83 1.67 0.50 0.67 1.25 0.98 now i wan to total up the value. if the value is less than 1 , then total is 5. if the value is greater than 1, then total …

Software Development
Member Avatar for ashley11
0
119
Member Avatar for bahed121

Hi I want to create a c# program where i have to check processes which are currently running and close a particular of them can any one help me Thanks.

Software Development
Member Avatar for bahed121
0
141
Member Avatar for ashley11

i have a problem to do calculation part. i need to do 3 calculation part. Now my problem is , my answer for conf and lift loop many times. may i know how to correct it? below are my coding: [CODE] string b = txtTotalItems.Text; double e = Double.Parse(b); double …

Software Development c#
Member Avatar for Saikalyankumar
0
149
Member Avatar for mas51

I have put together a program using a class AbstractSort that can be used to analyze the number of comparisons performed by a sorting algorithm. Anyway, I built the programs( I have 2 here) and the first one counts the passes but does not order the array created and the …

Software Development algorithm c++
Member Avatar for mas51
0
409

The End.