Search:
Type: Posts; User: Alterah
Search:
Search took 0.04 seconds.
-
You've only gotten input for guessW. Your cars variable has been declared, but not initialized to anything. So, it likely has garbage data which is why regardless of what you enter for guessW, it...
-
How are you trying to use the array? And what do you mean by not working?
-
April 28th, 2014, 07:31 PM
I'd take a look at: http://www.cplusplus.com/doc/tutorial/control/
-
I'm going to chime in and say that I agree with 2kaud and laserlight's assessment of where the bug likely lies with your code. Getting angry at them and claiming they don't understand what a linked...
-
April 23rd, 2013, 05:33 PM
You should post what you have, explain where you are stuck or what is confusing. That way we can help you.
-
April 22nd, 2013, 04:07 PM
I'm with 2kaud. Throw it in. It adds complexity (though not much, really). I'd just be sure to output and comment the code with the rules. Not everyone may know about that variation of the game.
-
March 30th, 2013, 07:45 PM
I'd work on fixing your indenting. it will make reading your code much easier.
-
March 23rd, 2013, 10:38 AM
I haven't been following this thread in depth, but if you have to change your code to work on a new compiler, it's buggy code. Not only that, you now have two points in your code to maintain, making...
-
March 21st, 2013, 12:41 PM
So, what exactly is the assignment?
-
March 14th, 2013, 11:06 AM
This thread is over four years old. I'm sure the issue has been resolved.
-
February 28th, 2013, 04:47 PM
The main problem I have with your class is that it doesn't make much sense to me. I understand what you are doing with the class, but it's backwards. Your class does one thing, and that's find the...
-
February 13th, 2013, 12:22 PM
I agree with GCDEF on the formatting. One thing I want to point out is that your counts function should probably have an int return value. You are counting the number of times a character appears...
-
February 13th, 2013, 11:31 AM
Look at how you come up with counts_chr within your frequency function. Once you have that bit of information you can figure out what counts_chr is. Or, and probably a better solution, is to pass...
-
February 8th, 2013, 06:14 PM
I'd have to say C++ because we use both C and C++ files when we build the executable.
-
February 8th, 2013, 05:06 PM
True, but I am dealing with a C struct and so wasn't quite sure.
-
February 8th, 2013, 03:13 PM
Hello,
So, at my work we use a static analysis tool and it is pointing out some uninitialized variables. One of which is a class member variable which is a C struct. Now, that variable is already...
-
January 16th, 2013, 05:44 PM
Well, I can only recommend C++ sources that have helped me out. Here's another: http://www.learncpp.com/. You might try using Google to search C++ arrays and see if it can return results in your...
-
January 16th, 2013, 05:27 PM
You can use Google for a resource. I know if you search C++ Arrays the first link is a good source: http://www.cplusplus.com/doc/tutorial/arrays/
In addition, that site is a good resource for...
-
January 16th, 2013, 04:10 PM
That's not your problem right now.
-
January 16th, 2013, 04:01 PM
That's not a good way to look at the problem. Because of all the extra code, you have too much to look at. On top of that your indention is off, making it even harder.
Here's the basic setup,...
-
January 16th, 2013, 03:51 PM
That is way too much code to do that. You should only need 2 for loops. One to iterate through a column, and then the other to move you to the next column.
-
January 16th, 2013, 03:47 PM
If you were going to print out the numbers in the array, column by column, how would you do that?
-
January 16th, 2013, 03:19 PM
SwiftXShadow, there isn't much more we can do without giving you the answer. GCDEF has given plenty of hints.
-
January 16th, 2013, 12:45 PM
If I understand the problem correctly, you have one matrix, A[4][7]. So, it's 4 rows and 7 columns. You need to then add the numbers starting at the third column going through the 7th column for each...
-
January 16th, 2013, 11:59 AM
SwiftXShadow, you really need to take the time to read that tutorial. I know you are feeling pressured right now, but if you can't grasp the concept of loops, then future assignments will just be...
|
Click Here to Expand Forum to Full Width
|