Node* fresh = (Node*)malloc(sizeof(Node));
fresh->next = NULL;
printf("请输入学生的学号,姓名,成绩 ");
scanf("%d%s%d", &fresh->student.stuNum, fresh->student.name, &fresh->student.score);
Node* move = head->next;
while (move != NULL) {
move = move->next;
}
//将学生插入到尾部
move = fresh;
Node* fresh = (Node*)malloc(sizeof(Node));
fresh->next = NULL;
printf("请输入学生的学号,姓名,成绩 ");
scanf("%d%s%d", &fresh->student.stuNum, fresh->student.name, &fresh->student.score);
Node* move = head;
while (move->next != NULL) {
move = move->next;
}
//将学生插入到尾部
move->next = fresh;
为什么插入学生信息的时候move不能指向head->next,明明下面跟着改成了move!=NULL了啊