user39901
8
Q:

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;
}
0

New to Communities?

Join the community