Guest User

Untitled

a guest
May 29th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. class user
  2. {
  3. private:
  4. int security;
  5. string password;
  6. public:
  7. string username, email;
  8. int age;
  9. string signup()
  10. {
  11. int num;
  12. cout << "Welcome new user!nPlease enter your username:n";
  13. cin >> username;
  14. cout << "What is your email?n";
  15. cin >> email;
  16. cout << "What is your age?n";
  17. cin >> age;
  18. cout << "Make a password:n";
  19. cin >> password;
  20. cout << "Enter a number:n";
  21. cin >> num;
  22. security = mnet::random(num);
  23. cout << "Your security code is " << security << endl;
  24. return username;
  25.  
  26.  
  27. }
  28. };
  29. int main()
  30. {
  31. string LorS;
  32. user cprofile;
  33. cout << "Welcome to MatrixNet! Login or Sign up?[L/S]n";
  34. cin >> LorS;
  35. if(LorS == "S" || LorS == "s") {
  36. cprofile = cprofile.signup();
  37. }
  38.  
  39.  
  40.  
  41. return 0;
  42. }
  43.  
  44. cprofile = cprofile.signup();
Add Comment
Please, Sign In to add comment