正在加载图片...
例 struct student int num; char name 20]; char sex; int age; float score 3 stud 10; or(i=0;i<10;i++) fread ( &studi, sizeof(struct student), 1, fp);例 struct student { int num; char name[20]; char sex; int age; float score[3]; }stud[10]; for(i=0;i<10;i++) fread(&stud[i],sizeof(struct student),1,fp);
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有