Skip to content

Instantly share code, notes, and snippets.

@rajeevs1992
Created January 22, 2013 14:53
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/4595218 to your computer and use it in GitHub Desktop.
Save rajeevs1992/4595218 to your computer and use it in GitHub Desktop.
#include<fstream.h>
#include<stdlib.h>
int main()
{
cout<<"\nPassword generator ";
ofstream o;
o.open("K:\\pd");
float a;
a=rand();
cout<<a;
float code=((a*12)-523)*66;
o.write((char*)&code,sizeof code);
o.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment