I decided to take a Computer science class and i have been doing well on my previous labs until this one was assigned. We are suppose to have an input file with games scores have have them outputted and calculated. It seems prety easy but for some reason, I cant do it! I've read my textbook over and over and i can't figure out what I'm dong wrong.
This is what I have in my input file:
Leila 700 800 1000
it outputted "File opened successfully"
...
and the compiler says that build is unsuccessful!
This makes no sense. If the build did not work, how can it have been run? Does the compiler give any other error messages? Your code works fine, by the way, although I didn't put game_scores.txt at the root of the C: drive when I tested it.
I put game_scores.txt in the same directory as the executable I built. Note that on many systems (actually, I say "many", but I'm thinking Visual Studio on Windows), the executable is not built in the same directory that the source code is stored in.
This program does that. It reads all the data from the file and processes it and writes the results out to another file. Is that not what you wanted? We can't guess. If you want your program to do something that it's not doing, you have to tell us what.