Skip to content

Commit

Permalink
city_count
Browse files Browse the repository at this point in the history
  • Loading branch information
Gloridust committed May 2, 2024
1 parent eb85dab commit 368f708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified guessID
Binary file not shown.
3 changes: 2 additions & 1 deletion guessID.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <time.h>

#define THREAD_COUNT 8
#define city_count 3207

char* id_input;

Expand Down Expand Up @@ -68,7 +69,7 @@ char** read_city_codes(const char* filename) {

int main() {
char** city_codes = read_city_codes("citycodes.txt");
const int city_count = sizeof(city_codes) / sizeof(city_codes[0]);
// const int city_count = sizeof(city_codes) / sizeof(city_codes[0]);

id_input = malloc(19 * sizeof(char)); // Allocate memory for ID input
printf("请输入身份证号码,用星号 (*) 替代未知数字:");
Expand Down

0 comments on commit 368f708

Please sign in to comment.