Advertisement
HakdogForce

Untitled

Oct 23rd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int pin[4]; //pin
  5. int ver_pin[4];
  6. int x;
  7.  
  8. int menu(){
  9. cout <<"\n---------+HONEY BANK+--------"<< endl;
  10. cout <<" [1] New User" << endl;
  11. cout <<" [2] Old User" << endl;
  12. cout <<"-----------------------------"<< endl;
  13. cout << "Select User type: ";
  14. cin >> x;
  15. if(x == 1){
  16. system("cls");
  17. cout <<"***New User Registered***" << endl;
  18. cout << "\nEnter PIN: ";
  19. for(int i = 0; i < 1; i++){
  20. cin >> pin[i];
  21. }
  22.  
  23. cout << "\nVerify your Pin"<< endl;
  24. cout << "\nEnter new PIN again: ";
  25. for( int i = 0; i < 1; i++){
  26. cin >> ver_pin[i];
  27. }
  28.  
  29. if(pin[0] == ver_pin[0]){
  30. cout << "You're now validated!" << endl;
  31. }
  32. else{
  33. cout << "Opsss! Error\nReturning to Menu" << endl;
  34. return menu();
  35. }
  36. if(x==2){
  37. //function
  38. //code::
  39. }
  40. }
  41.  
  42. }
  43.  
  44. int main(){
  45. menu();
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement