Hello to everyone!
Right now I am writing a game the is like a randomly generated number is showed to the user for some seconds and he has to remember it. Then the user must enter the same number to continue.
So, the problem is that the user can enter the nummber while it is shown end when it goes away the digits that he had entered still stay. I need to remove that because it's a way of cheating.
int main() {
SetConsoleTitle("Remember the number");
system("color 4f");
if (isFirst == true) {
cout << "\n\n\n\n\n\n\n\t Remember the shown numbers and then write them again correctly! \n\n\n";
cout << "\t\t\t\t Good luck! \n\n\n\t\t\t ";
Sleep(6000);
isFirst = false;
}