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...
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.
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...
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...
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...
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...
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...
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...
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.
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.
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...
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...
Googling "c sprintf" results in http://www.cplusplus.com/reference/cstdio/sprintf/ being first on the list. Going to that page, the first sentence reads: "Composes a string with the same text that...
Lets say that you are given an array of 5 numbers. You have no idea what they are. But, then a user enters a number. How would you test to see if this number is in that array?