Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (userChoice == "ADD")
- {
- string username = "";
- cout << "Enter the user's name." << endl;
- cout << "> ";
- getline(cin,username);
- cin.ignore();
- localLibrary.addAccount(username);
- cout << "> ";
- cin >> userChoice;
- }
- else
- {
- cout << "Invalid command." << endl << endl;
- cout << "> ";
- cin >> userChoice;
- }
- OUTPUT:
- Enter the user's name.
- > first last
- AccountID# 26 successfully created.
- > Invalid command.
- > Invalid command.
Add Comment
Please, Sign In to add comment