bool stop = false;
system("cls"); // clear console
// run your program
int pressedChar = getch();
stop = pressedChar != 114; // 114 = 'R'
stop = pressedChar == 'r';
stop = pressedChar != 'r'
pressedChar != 'r'
This action is not allowed at this time as the site is in read-only mode. Please try again later.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)