Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <iostream>
- using namespace std;
- int process(const char *n, const char *p)
- {
- int i = 0;
- int t = 0;
- while(i<10)
- {
- system("cls");
- if(t>2)
- t = 0;
- if(t == 0)
- cout << "." << endl;
- if(t == 1)
- cout << ".." << endl;
- if(t == 2)
- cout << "..." << endl;
- Sleep(100);
- t++;
- i++;
- }
- system("cls");
- const char *username = "hani";
- const char *password = "ninjatroll";
- if((strcmp(n,username)!=0)||(strcmp(p,password)!=0))
- {
- cout << "Wrong Username or password!" << endl;
- cin.get();
- return 1;
- }
- else
- {
- cout << "You\'ve entered the correct Username and Password!" << endl;
- cin.get();
- return 0;
- }
- return 1;
- }
- int fotbalbiga(int x,int y)
- {
- cout << " please enter fotball szie " << endl;
- cin >> x ;
- cout <<"please enter new fotball size " << endl;
- cin >> y ;
- int m;
- for(m=0;m<10;m++);
- cout << " ..." << endl;
- Sleep(100);
- system("cls");
- cout <<" AaaaaaA we have reached New fotball size of " << endl;
- return y ;
- }
- int main()
- {
- char usnm[20];
- char pssw[20];
- cout << "Enter your Username:" << endl;
- cin.getline(usnm,20);
- system("cls");
- cout << "Enter your Password:" << endl;
- cin.getline(pssw,20);
- system("cls");
- process(usnm,pssw);
- fotbalbiga(0,0);
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement