#include #include #define SIZE 10 struct student_type {char name[10]; int num; int age; char addr[15]; }stud[SIZE]; int main( ) {int i; FILE *fp; if((fp=fopen ("stu.dat","rb"))==NULL) // 打开输入文件atu.dat {printf("cannot open file\n"); exit(0) ; } for(i=0;i