例 float f[2; FILE *fp for(i=0;i<2;i++) fp=fopen(in dat",rb); fread(&f[, 4, 1, p); fread(f, 4, 2, p) 例 struct student r int numa char name 20l: char sex int age float score3; stud 10: or(i=0;i<10;i++) fread(&studi, sizeof(struct student), 1, fp);例 float f[2]; FILE *fp; fp=fopen(“in.dat","rb"); fread(f,4,2,fp); for(i=0;i<2;i++) fread(&f[i],4,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);