Advertisement
Guest User

Account Creator

a guest
Mar 15th, 2019
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. string Username;
  5. int Password;
  6.  
  7. string Answer;
  8. bool Enabled = true;
  9. void Settings()
  10. {
  11. cout << "------------------" << endl;
  12. cout << "-Username: " << Username << " -" << endl;
  13. cout << "-Password: " << Password << " -" << endl;
  14. cout << "- -" << endl;
  15. cout << "- -" << endl;
  16. cout << "- -" << endl;
  17. cout << "- -" << endl;
  18. cout << "- -" << endl;
  19. cout << "- -" << endl;
  20. cout << "-Thank you for signing up!-" << endl;
  21. cout << "------------------" << endl;
  22. }
  23. void Management()
  24. {
  25. cout << "Would you like to create an account?" << endl;
  26. cin >> Answer;
  27. if (Answer == "Yes" or Answer == "yes")
  28. { cout << "What's your username?" << endl;
  29. cin >> Username;
  30. cout << "What would you like your password to be?" << endl;
  31. cin >> Password;
  32. Settings();
  33.  
  34. }else{
  35. cout << "Goodbye World" << endl;
  36. }
  37. }
  38. int main()
  39. {
  40. if (Enabled == true) { Management(); }
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement