错误:数字常量前应为 ')'
我的代码似乎是正确的,但编译器始终向我发送一条错误消息。尝试编辑和编译一个小时后,我仍然找不到错误。帮助?这是我的代码:
void get_record()
{
char record_num[LEN];
int x, y;
printf("Enter the record number of the Student Record to modify: ");
fgets(record_num, LEN, stdin);
{
x = atoi(record_num);
if (x>STUDENTS||x<=0)
{
printf("ERROR: Invalid Input. Input should be from 1-"STUDENTS".\n");
printf("Enter the record number of the Student Record to modify: ");
get_record();
}
}
output();
_z= x;
i= (x-1);
printf(LEV2"%3d %25s %9s ", x, name[i], studno[i]);
for (y=0; y<EXAMS; y++)
{
printf("%5s ", exam_z[y]);
y++;
}
}
帮助?