Advertisement
Guest User

Untitled

a guest
May 20th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 1.51 KB | None | 0 0
  1. #include <windows.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5.  
  6. int process(const char *n, const char *p)
  7. {
  8.     int i = 0;
  9.     int t = 0;
  10.     while(i<10)
  11.     {
  12.         system("cls");
  13.         if(t>2)
  14.             t = 0;
  15.         if(t == 0)
  16.             cout << "." << endl;
  17.         if(t == 1)
  18.             cout << ".." << endl;
  19.         if(t == 2)
  20.             cout << "..." << endl;
  21.         Sleep(100);
  22.         t++;
  23.         i++;
  24.     }
  25.     system("cls");
  26.     const char *username = "hani";
  27.     const char *password = "ninjatroll";
  28.     if((strcmp(n,username)!=0)||(strcmp(p,password)!=0))
  29.     {
  30.         cout << "Wrong Username or password!" << endl;
  31.         cin.get();
  32.         return 1;
  33.     }
  34.     else
  35.     {
  36.         cout << "You\'ve entered the correct Username and Password!" << endl;
  37.         cin.get();
  38.         return 0;
  39.     }
  40.  
  41. return 1;
  42. }
  43.  
  44. int fotbalbiga(int x,int y)
  45. {
  46.     cout << " please enter fotball szie " << endl;
  47.     cin >> x ;
  48.     cout <<"please enter new fotball size " << endl;
  49.     cin >> y ;
  50.     int m;
  51.     for(m=0;m<10;m++);
  52.     cout << " ..." << endl;
  53.     Sleep(100);
  54.     system("cls");
  55.    
  56.     cout <<" AaaaaaA we have reached New fotball size of " << endl;
  57.     return y ;
  58. }
  59.  
  60. int main()
  61. {
  62.     char usnm[20];
  63.     char pssw[20];
  64.     cout << "Enter your Username:" << endl;
  65.     cin.getline(usnm,20);
  66.     system("cls");
  67.     cout << "Enter your Password:" << endl;
  68.     cin.getline(pssw,20);
  69.     system("cls");
  70.     process(usnm,pssw);
  71.     fotbalbiga(0,0);
  72. return 0 ;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement