根据字符表穷举密码

今天遇到一个题,要求根据 a-z0-9 这些字符穷举出所有的可能的密码,搞了搞,代码如下 #include <stdio.h> #include <string.h> #define PWD_LEN (3) char table[] = "abcdefghijklmnopqrstuvwxyz0123456789"; int table_len = strlen(table); void f(char pwd[], int curr) { if (curr == P……

阅读全文