Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Eric Andrews
- Exam part 2
- oct 16th, 2011*/
- #include <iostream>
- #include <string>
- using namespace std;
- //struct bobaccount
- //{
- // int username;
- // int password;
- //
- //
- //
- //};
- int main()
- {
- int username = 0;
- int password = 0;
- //bobaccount regaccount;
- cout << "Welcome to Bank of Bob"<<endl<<"As a first time user you will need to register an account"<<endl;
- cout << "Please create a user name"<<endl;
- cin >> username;
- cout << username;
- while((isalpha(username)) || (!isdigit(username)))
- {
- getchar;
- cout <<"Your username must be in numbers";
- cin >> username;
- };
- cout <<"enter password";
- system("pause");
- return 0;
- };
Add Comment
Please, Sign In to add comment