#include <iostream>
#include <Windows.h>
#include <string>
usingnamespace std;
int choice;
string password;
string username;
int main()
{
cout << "Hello, Would you like to: \n\n"
<< "1 - Register\n"
<< "2 - Login\n"
<< "3 - Exit\n\n"
<< endl;
cout << "Now choose: ";
cin >> choice;
if (choice == 1)
{
cout << "Please choose a username: ";
cin >> username;
cout << "Now choose a password: ";
cin >> password;
}
system("pause");
return 0;
}
is what i have so far, can someone please tell me how to make it ask if you are sure you want to make an account then go back to the register / login / exit page?