Skip to content

Instantly share code, notes, and snippets.

@rajeevs1992
Created January 22, 2013 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeevs1992/4595213 to your computer and use it in GitHub Desktop.
Save rajeevs1992/4595213 to your computer and use it in GitHub Desktop.
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";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment