Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void password()
- {
- ifstream i;
- float pd;
- i.open("K:\\pd"); //my pendrive
- i.read((char*)&pd,sizeof pd);
- i.close();
- int flag;
- flag=pd/66; //the decryption of password
- flag=flag+523;
- if(flag%12==0)
- {
- cout<<"\nWelcome";
- getch();
- }
- else
- {
- while(1) //prank-an infinite loop
- {
- cout<<"Operation Fail";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment