[問題] 錯誤更正: 遇到大括號編譯不過
我在編譯的時候,遇到一些函數的問題,和大括號有關聯
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
--
by kenn
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.242.35.169
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1408759965.A.CC6.html
→
08/23 10:23, , 1F
08/23 10:23, 1F
推
08/23 13:49, , 2F
08/23 13:49, 2F
→
08/23 13:50, , 3F
08/23 13:50, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章