Type: Posts; User: Ubiquitous
Search took 0.02 seconds.
August 30th, 2013, 03:17 AM
Your list is sorted it just doesn't look like it is because there is no spacing between numbers.
/* change above line so that
* it will have...
March 26th, 2013, 01:42 AM
What is your code failing to do? I see you have created a FileWriter and PrintWriter but never used either to save into the file. Read up on how FileWriter and PrintWriter work since I am guessing...
March 26th, 2013, 01:33 AM
If I am looking at the code correctly then the issue is within your foreach loop.
// The loop extracts each word from the text box to translate it into pig latin
March 17th, 2013, 12:18 AM
In your Calculate method there is not need to create and initialize the variable again. You simply have to do r++ which is the equivalent to doing r = r + 1 or r += 1 they all do the same thing. Also...
March 13th, 2013, 01:46 PM
Assign the returned value to a variables. Your method returns whatever the value for number1 is within the method but the main method does not know what to do with it because you are not storing it....
March 13th, 2013, 01:28 PM
2 Dimensional arrays are not much more complicated than single element arrays. You populate them in a similar manner. In your code I do not see any attempt at populating the array though. I see in on...
March 12th, 2013, 11:01 AM
In a class right now so have to make a brief response but to populate a multidimensional array you could create a nested loop.
static void Main(string args)
March 10th, 2013, 11:32 PM
When posting code use
Post code inside here tags.
The issue I notice is that you are creating variables at the class level then you are creating them again within methods. This means that the...
February 28th, 2013, 10:19 PM
You keep getting wrong because you are not saving any of the input from the dialog box. You show the question and show the answers but no variable to store it in.
String usrAnswer =...
February 27th, 2012, 04:08 PM
Congrats to both of you! You both are very helpful and well deserving of being moderators :)
February 27th, 2012, 04:03 PM
It all depends on how you plan on using the code and how long you plan to store the variable for. rliq's code should have worked with the details you have posted you just need to initialize the...
February 23rd, 2012, 03:57 PM
Sorry for missing that I skimmed through the code and everything looked correct.
From my understanding you have now resolved your issue but you do not need string player as that is really not...
February 22nd, 2012, 06:19 PM
I'm sure people will tell you this is a help forum not a code request forum. So post what you have tried and people here will help you and guide you in the right direction.
February 22nd, 2012, 05:49 PM
If I remember correctly the ^ only applies to the value it is after so lets say:
4 + 2^2 = 4 + (2 * 2) = 8
2 + 3^3 = 2 + (3 * 3 * 3) = 29
In your formula it is doing (50 * (1 + 0.1)) ^ 12
February 22nd, 2012, 05:36 PM
By not loading I am guessing you mean the window does not pop up showing you any of the UI? Have you tried simply creating a new project and importing the code into it? It seems like it is not a big...
February 17th, 2012, 01:44 PM
As stated by DataMiser your post are not clear one what you wish to accomplish. There are many different ways of accomplishing things and when it is not clear what your goal is people here can keep...
February 16th, 2012, 03:36 PM
I am not completely sure what you are trying to accomplish. Maybe you could post a better description of what exactly it is you are trying to accomplish and in what way. From what I can tell the...
February 4th, 2012, 01:53 AM
I am a little confused about your code. In the main form I see you make a List<Student> and in PersistantData you create the same List<Student> but they are modified at different instances in your...
February 3rd, 2012, 03:46 AM
From my understanding of listView is that the item counts as subitem and for any sub items it starts a subitem. I am sorry I am not able to explain this better but hopefully an example will...
January 19th, 2012, 05:19 PM
You can compare while reading the second file. Also if your purpose is to write 1 new file containing all words from both files excluding writing the duplicates of a word you can accomplish it with 1...
January 19th, 2012, 04:14 PM
It all depends on both list and how they are compared.
(list1.Contains(wordFromList2)) == (list2.Contains(wordFromList1))
January 19th, 2012, 03:43 PM
Well since I do not have as much experience as most of you guys whenever a simpler problem like this arises I try to jump on it and help out :)
January 18th, 2012, 06:39 PM
Looks like some formatting errors in timer1 code
else if (button3.Text == "X" && button6.Text == "X" && button9.Text == "X")
kazan = true;...
January 7th, 2012, 07:25 PM
Hmm I see that works and I like this method better. It would allow a sort of index on the top containing all functions found in the file.
What do experienced programmers usually do? Are both way...
January 7th, 2012, 08:44 AM
I apologize if its been asked before but my search didn't yield the answers I was looking for.
I have been looking at C++ and I am just starting. I am coming from a C# background but even in that...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!