编号

页码和行数

更正前

更正后

注

1

第274页倒数第1和第4行

MyStrcat(str1, str2);

strcat(str1, str2);

 

2

第318页倒数第13和第14行

,同时指出具有该最高分成绩的学生是第几个班的第几个学生

 

删掉“,同时指出具有该最高分成绩的学生是第几个班的第几个学生”

3

第348页正数第5-14行

stu2.studentID = 100310121;

strcpy(stu2.studentName, "王刚");           stu2.studentSex = 'M';

stu2.birthday.year = 1991;

stu2.birthday.month = 5;

stu2.birthday.day = 19;

stu2.score[0] = 72;

stu2.score[1] = 83;

stu2.score[2] = 90;

stu2.score[3] = 82;

 

stu1.studentID = 100310121;

strcpy(stu1.studentName, "王刚");           stu1.studentSex = 'M';

stu1.birthday.year = 1991;

stu1.birthday.month = 5;

stu1.birthday.day = 19;

stu1.score[0] = 72;

stu1.score[1] = 83;

stu1.score[2] = 90;

stu1.score[3] = 82;

 

 

4

第371页倒数第3行

1          10

1          20

1          10

2          20

 

5

第149页

 

void main()

{

......         或者

return;

}

排版印刷时漏掉了第一种形式的main函数

6

第41页第6行语句

printf("%d", (float)(a * b) / 2);

 

printf("%f", (float)(a * b) / 2);

 

 

7

第113页程序第7行

magic = rand();

magic = rand() % 100 + 1;

 

8

第122页程序第9行与第10行之间

 

counter = 0;   /* 猜下一个数之前,将计数器清0 */

第9行与第10行之间插入一条语句

9

第216页程序第11行

int   score[STUD_N][COURSE_N], sumS[STUD_N], sumC[STUD_N], n;

int   score[STUD_N][COURSE_N], sumS[STUD_N], sumC[COURSE_N], n;

 

10

第216页程序第13行

float averS[STUD_N], averC[STUD_N];

float averS[STUD_N], averC[COURSE_N];

 

11

第217页程序第23行

int ReadScore(int score[][COURSE_N], long num[], int n)

void ReadScore(int score[][COURSE_N], long num[], int n)