Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int pin[4]; //pin
- int ver_pin[4];
- int x;
- int menu(){
- cout <<"\n---------+HONEY BANK+--------"<< endl;
- cout <<" [1] New User" << endl;
- cout <<" [2] Old User" << endl;
- cout <<"-----------------------------"<< endl;
- cout << "Select User type: ";
- cin >> x;
- if(x == 1){
- system("cls");
- cout <<"***New User Registered***" << endl;
- cout << "\nEnter PIN: ";
- for(int i = 0; i < 1; i++){
- cin >> pin[i];
- }
- cout << "\nVerify your Pin"<< endl;
- cout << "\nEnter new PIN again: ";
- for( int i = 0; i < 1; i++){
- cin >> ver_pin[i];
- }
- if(pin[0] == ver_pin[0]){
- cout << "You're now validated!" << endl;
- }
- else{
- cout << "Opsss! Error\nReturning to Menu" << endl;
- return menu();
- }
- if(x==2){
- //function
- //code::
- }
- }
- }
- int main(){
- menu();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement