below is one of my function call of a program done in C:
/* asks if the players would like to have another game of Tic Tac Toe */
void prompt_user(int game)
printf("\nPlay Again? (Y/N): ");
if(reply == 'Y' || reply == 'y')
else if(reply == 'N' || reply == 'n')
printf("Hope You Have Enjoyed The Game!\n\n");
exit(0); /* quits the game */
when using microsoft visual C++ and devC++ to compile and execute, there were no errors in the output when playing the tic-tac-toe game.
however, when i used my school's lab (which is using Linux and xemacs only) pc to compile and execute, the output did not allow me to enter Y or N as an answer to 'Play Again?'. The execution exits immediately. anyone knows the reason and how to solve my problem??