ok so i was assigned an assignment to make a simmple program in Dev C++. our teacher owuld like us to create a simple password retrieval program.
so if you were to enter a number such as 1234 the program would scan until it finds 1234. what i need is how do i get the program to incorparate letters and number so if i were to enter 1w2e3 how would i program the program to do this. this is what i have so far if anyone can help thatd be great.
Code:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int i;
for(i = 0; i < 99999; i++) {
printf("Trying password %d\n",i);
if(52220 == i) {
printf("The password is %d\n",i);
break;
}
}
system("PAUSE");
return 0;
}