学生信息经管完整C语言.docVIP

  • 2
  • 0
  • 约1.23万字
  • 约 16页
  • 2019-08-21 发布于江苏
  • 举报
PAGE / NUMPAGES #include string.h #include stdlib.h #define M 10 int num。 //计数 struct student { char xuehao[10]。 //学号 char name[10]。 //姓名 char sex[8]。 //性别 char birth[20]。 //出生年月 char jiguan[30]。 //籍贯 char tel[30]。 //电话 int score。 //成绩 }student[M]。 char headline[80]。 //全局变量 void read1() { FILE *fp。 //文件指针 int i=0。 fp=fopen(jz0112.txt,r)。 //打开文件 if(fp==NULL) { printf(不能找到文件,请检查!\n)。 return。 } fgets(headline,80,fp)。 //读第一行地函数 puts(headline)。 while(!feof(fp)

文档评论(0)

1亿VIP精品文档

相关文档