SetConsoleTextAttribute(hOut, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
cout << "\t\t\t\t" << "Enter the correct value: ";
}
int main()
{
int P;
cout << "This program calculate poppulation change." << endl;
cout << "The starting size of the population: ";
while (!(cin >> P) || P <= 2)
{
showmassage();
}
cin.get();
return 0;
}
This grogram I try to enter non interger value in 2 or 4 time on value P.
it just keep escape the window. I dont know waht happen to it
any help please
thank you very much