NOTE: I wonder, now that the code errors are fixed, that this should be moved to the games board? :confused:
Yay! Thank you so much for your help, I've got it working now! :D
Well, ALMOST...
Type: Posts; User: ChronoSquare
NOTE: I wonder, now that the code errors are fixed, that this should be moved to the games board? :confused:
Yay! Thank you so much for your help, I've got it working now! :D
Well, ALMOST...
Ok yes, thank you for pointing out those errors. Yeah, I'd love to get a new C++ teacher (we all would), but sadly that decision is out of our hands, as he's the only one in the school.
I know a...
Well, it isn't really good enough to be considered an actual game - it's just a battleship and rocketship program I made for a teacher last December (in Pascal) to enter guesses for the location and...
Apparently not... still the same "Qualifier 'std' is not a class or namespace name." And I tried just the cin.get(), that did as much as the getch - still just ran right through the end without...
It says that qualifier std is not a class or namespace name... do I just have an old limit library, or is there something else I"m missing?
So then, other than cin, is there any other functions that could pause the program for me? Having to stop it with cin seems, I don't know, kind of primitive... lol
Ok, so I use 8 for the array size and almost every problem goes away - except it still doesn't pause for the getch.
At least we're back to square one! It was doing some wierd things to me on...
Ok, so now I enter that, and get the input to work like it should - except it only reads in seven numbers, where I want eight, but then on the next run it gives me the following error: Error writing...
So... then, if I had declared the array as such:
const int MAX_LIST_SIZE = 7;
typedef double list_scores[MAX_LIST_SIZE];
list_scores scores;
then set int length = MAX_LIST_SIZE, it would...
Well, for the compiler we're using Borland C++ version 5.02. The getch I found in one of the graphics sections of our book (Fundamentals of C++: Understanding programming and problem solving, Kenneth...
Would anyone here know why, when calling getch() from the conio library to pause the program until the user hits enter, that that line of code would not work?
For some reason, in my program the...
Oh yeah... I meant to include the information that we are running on Borland C++ version 5.02, guess I missed that part.
The Windows tutorial looks quite beneficial, if not for the fact that the...
To understand this situation, I'll give a brief account of the history behind this problem:
Back in December, when I was taking Structured Programming (Pascal...), I was asked by the teacher to...