while (!(cin >> b) || (cin.peek() != '\n') || (b <= 0))
{
cin.clear();
while (cin.get() != '\n');
cout << "Error enter!\n";
cout << "to begin again, press any key...\n";
}