我在编译的时候,遇到一些函数的问题,和大括号有关联
void load_user(FILE *fp,struct USER start[]){
int a,b;
while(fscanf(fp,"%d",&start[a].ID)!=EOF){
fscanf(fp,"%s %s %s %d",start[a].name,start[a].password,start[a].user);
for(b=0;b<10;b++){
fscanf(fp,"%d",&start[a].group[b]);
}
}
}
[Error] a function-definition is not allowed here before '{' token
[Error] expected '}' at end of input