|
-
August 1st, 2007, 12:34 PM
#1
What goes for cin here?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "\tMike's Login\n";
int security = 0;
string username;
cout << "\nUsername: ";
cin >> username;
string password;
cout << "Password: ";
cin >> password;
if (username == "Mike" && password == "password")
{
cout << "\nWelcome Mike, Please Select a Choice Below";
cout << "\n1-Choice1";
cout << "\n2-Choice2";
cout << "\n3-Choice3";
cin >> ????????
}
if (!security)
cout << "\nYour login failed.";
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|