Guest User

Untitled

a guest
Jan 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. /*Eric Andrews
  2. Exam part 2
  3. oct 16th, 2011*/
  4.  
  5. #include <iostream>
  6. #include <string>
  7.  
  8.  
  9. using namespace std;
  10.  
  11. //struct bobaccount
  12. //{
  13. //  int username;
  14. //  int password;
  15. //
  16. //
  17. //
  18. //};
  19.  
  20. int main()
  21.    
  22. {
  23.     int username = 0;
  24.     int password = 0;
  25.     //bobaccount regaccount;
  26. cout << "Welcome to Bank of Bob"<<endl<<"As a first time user you will need to register an account"<<endl;
  27. cout << "Please create a user name"<<endl;
  28. cin >> username;
  29. cout << username;
  30.  
  31. while((isalpha(username)) || (!isdigit(username)))
  32. {
  33. getchar;
  34. cout <<"Your username must be in numbers";
  35. cin >> username;
  36.  };
  37.  
  38. cout <<"enter password";
  39.  
  40.  
  41. system("pause");
  42. return 0;
  43. };
Add Comment
Please, Sign In to add comment