|
|
cin >> menu;
should be followed by cin.ignore();
to deal with the newline left in the input stream from the user pressing enter.while(done == false)
should be while(done)
the first version is error prone for example people will do this by accident while(done = false)
which is an assignment statement and will allways be false.