i'm using C++
On Oct 4, 2008, at 8:14 PM, Paul David wrote:

> ofile.open("High Scores.txt");
> for(int i = 0; i < numhighscores; i++)
> {
> if(i > 0)
> {
> ofile << endl;
> }
> ofile << highscores[i] << endl;
> ofile << names[i];
> }
> ofile.close();
>
> In this code numhighscores is an int, highscores is an array of ints,
> names is an array of strings, ofile is an ofstream from the fstream
> header file
>
> Why are the highscores printed but not the names?
>
> please help and thanks in advance for any help
>
> -- Paul David
> [EMAIL PROTECTED]
>
> [Non-text portions of this message have been removed]
>
>
> 



[Non-text portions of this message have been removed]

Reply via email to