...asd

aaaa
Last edited on
1
2
3
4
5
6
7
    while(1)
    {
        cout << "Main menu\n";
        cout << " 1) Show a list\n";
        cout << " 2) Add a name\n";
        cout << " 3) exit\n";
    }

The above is going to repeat infinitely. You never ask for input or call any other functions.
You also have no way to leave the loop (a break statement or conditional statement in the while).
Last edited on
While(1) is an infinite loop.
Topic archived. No new replies allowed.