yeah... haha, i cut the password down to 4 characters i realized that bit a little ways into things.
I'm having trouble with displaying this info though:
Code:
cout<<endl<<"It took:"<<endl<<"======="<<endl<<(time%60000)<<" Minutes, ";
time = time - (60000*(time%60000));
cout<<(time%1000)<<" Seconds, and ";
time = time - (1000 * (time%1000));
cout<<time<<" Milliseconds to crack the password."<<endl;
cout<<"With as, "<<tested<<" attempts."<<endl;
cout<<"At Approximately "<<aps<<" attempts per second.";
Just to show how long it took in different units...
Why wont it work? =(
EDIT------------
Actually...
I'm getting a runtime error, div by 0, but why?
Code:
time = stopTimer();
aps = (tested/(time%1000));
cout<<"The Password Is: "<<conCylinder(main, ptext, ctext, p, tested)<<endl;
cout<<endl<<"It took:"<<endl<<"======="<<endl<<(time%60000)<<" Minutes, ";
time = time - (60000*(time%60000));
cout<<(time%1000)<<" Seconds, and ";
time = time - (1000 * (time%1000));
cout<<time<<" Milliseconds to crack the password."<<endl;
cout<<"With as, "<<tested<<" attempts."<<endl;
cout<<"At Approximately "<<aps<<" attempts per second.";
cin.ignore();
And i initialized time to 1, and it gets reassigned a number when the function finishes.