编号 |
页码和行数 |
更正前 |
更正后 |
注 |
1 |
第232页 倒数第19行 |
① 4 ↙ 4 is not a prime number ② 7 ↙ 7 is a prime number ③ 1 ↙ 1 is not a prime number ④ 0 ↙ 0 is not a prime number ⑤ -1 ↙ -1 is not a prime number
|
①Input m:4 ↙ 4 is not a prime number ②Input m:7 ↙ 7 is a prime number ③Input m: 1 ↙ 1 is not a prime number ④ Input m:0 ↙ 0 is not a prime number ⑤ Input m:-1 ↙ -1 is not a prime number
|
|
2 |
第234页 倒数第10行 |
① Input m:16↙ 2,4,8 ② Input m:17↙ No divisor! It is a prime number!
|
① Input n:16↙ 2,4,8 ② Input n:17↙ No divisor! It is a prime number!
|
|
3 |
第150页程序第13行 |
|
|
m 后面是个减号,印得不清楚 |
4 |
第256页程序第71行 |
printf("Input student's ID, name and score:\n"); |
printf("Input student's ID and score:\n"); |
|
5 |
第96页程序运行结果的第3行 |
Scores of judges: |
Scores of Athletes: |
|
6 |
第103页正数第1行 |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31} |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}}; |
|
7 |
第103页倒数第2行 |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}} |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}}; |
|
8 |
第104页倒数第6行 |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}} |
int dayTab[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}}; |
|
9 |
第306页355-360行代码 |
fprintf(fp, "%d\t%d\n", n, m); /*将学生人数和课程门数写入文件*/ if ((fp = fopen("student.txt","w")) == NULL) { printf("Failure to open score.txt!\n"); exit(0); } |
if ((fp = fopen("student.txt","w")) == NULL) { printf("Failure to open score.txt!\n"); exit(0); } fprintf(fp, "%d\t%d\n", n, m); /*将学生人数和课程门数写入文件*/
|
第355行代码放到第360行代码之后 |