下列给定程序的功能是调用fun函数建立班级通讯录。通讯录中记录每位学生的编号、姓名和电话号码。班级人数和学生信息从键盘读入,每个人的信息作为一个数据块写到名为myfile5.dat的二进制文件中。请在空白处填入正确内容,使程序得出正确的结果。 #include
#define N 5 typedef struct { int num; char name[10]; char tel[10]; } STYPE; void check(); /**********found**********/ int fun( 【1】*std) { /**********found**********/ 【2】 *fp;int i; if((fp=fopen("myfile5.dat","wb"))==NULL) return(0); printf("\nOutput data to file !\n"); for(i=0; i