Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string username = regUserInput;
- string password = regPassInput;
- string userInput;
- string passInput;
- cout << endl;
- while (userInput != username) {
- cout << "Enter Username: " << endl;
- cin >> userInput;
- if (userInput != username) {
- cout << "Wrong Username Try Again!" << endl;
- }
- }
- if (userInput == username) {
- while (passInput != password) {
- cout << "Enter Password: " << endl;
- cin >> passInput;
- if (passInput != password) {
- cout << "Wrong Password Try Again!" << endl;
- }
- if (passInput == password) {
- cout << "Working!" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement