how to make a c++ iostream program restart when finished code example
Example: how to make a c++ iostream program restart when finished
if (whatever condition)
correct();
else
{
incorrect();
cout << "Enter y to restart: ";
char c;
cin >> c;
if (c == 'y')
continue;
else
return 1;
}