Hi, I was writing a pick a random number program, and on line 31 (line number is shown in comment), it says for the errors: ` and [Each and `. Also on line 50 (doesn't even exist) it says that there is parse, but is whitespace that doesn't exist parse?If anybody has any idea what these errors mean and/or how I can fix them, that would be awsome.
Thanks for any help,Code:#inclued <cstdlib> #include <ctime> #include <iostream> int game() { using std::cout; using std::cin; using std::endl; srand((unsigned)time(NULL)); int randomnum, number; randomnum = rand(); cout << "Guess a number: "; cin >> number; if (randomnum == number) { cout << "You Win!!!!!!!"; } if (randomnum != number) { cout << "You Lose!!!!!!" << endl; cout << "The number was " << randomnum << "."; } if (randomnum == number || randomnum != number) { cout << endl << "Play Again? Y/N" << endl; char again; cin >> again; if (again == Y || again == y) //THIS IS LINE 31 { int game; } else { return 0; }} else { cout << "Error Occured"; Sleep(2000); return 0; } int main(); { int game(); return 0; }



LinkBack URL
About LinkBacks
If anybody has any idea what these errors mean and/or how I can fix them, that would be awsome. 


