Advertisement
Fillinlak3

CREDIT CARD

Dec 11th, 2019
4,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.04 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     system("CLS");
  9.     system("COLOR 5");
  10.     system("TITLE NITA E UN PRIETEN BUN");
  11.  
  12.     string username, password;
  13.     string usernameVER="15975324861379", passVER="5791";
  14.     string cmd;
  15.  
  16.     /// LOGIN
  17.     cout << "   Enter your credit's card data below\n\nCredit Card Series: "; cin >> username;
  18.     cout << "\nPin: "; cin >> password;
  19.  
  20.     /// ACCOUT VERIFICATION
  21.     while(true)
  22.     {
  23.         while(username==usernameVER && password==passVER)
  24.         {
  25.             cout << usernameVER <<"@admin: ";
  26.             cin >> cmd;
  27.             if(cmd=="/help")
  28.             {
  29.                 cout << "\n   This is a list of available commands:";
  30.             }
  31.            
  32.         } else {
  33.             system("CLS");
  34.             cout << "\n   Your Credit Card Series or Pin is wrong... try again!";
  35.  
  36.             /// LOGIN
  37.             cout << "\n\nCredit Card Series: "; cin >> username;
  38.             cout << "\nPin: "; cin >> password;
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement