while(fscanf(fp,"%s %s %d %d %s %s %d %d %s",zg[i].number,zg[i].name,&zg[i].

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 04:40:15
while(fscanf(fp,
x)+IH+NNKH+QR-V0Ba+TGg&8:jMR>u /!F)?y:&

while(fscanf(fp,"%s %s %d %d %s %s %d %d %s",zg[i].number,zg[i].name,&zg[i].
while(fscanf(fp,"%s %s %d %d %s %s %d %d %s",zg[i].number,zg[i].name,&zg[i].

while(fscanf(fp,"%s %s %d %d %s %s %d %d %s",zg[i].number,zg[i].name,&zg[i].
fscanf 返回成功读入的数据(变量)个数,只要读到数据,while 继续循环,读到错误数据(例如整数写成字母),或没成功读到数据,或读到EOF, 则退出 while 循环