我在編譯的時候,遇到一些函數的問題,和大括號有關聯
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