2016年度精品C程序的设计综合性实验报.docVIP

  • 5
  • 0
  • 约1.62万字
  • 约 33页
  • 2018-11-02 发布于福建
  • 举报

2016年度精品C程序的设计综合性实验报.doc

2016年度精品C程序的设计综合性实验报

《C程序设计》综合性实验 实验报告 题目: 学生成绩管理 姓名: 班级: 机电工程学院0801 学号: 200848480116 指导教师: 刘伟杰 完成时间: 2009年6月21日 实验题目 学生成绩管理 实验目的 1. 掌握。 2. 掌握。 3. 综合应用。 程序代码 #includestdio.h #includestdlib.h int i,j; typedef struct student_type { char num[12]; char name[8]; char class[20]; int score[3]; int ave; } stu; stu stud[4]; void save() { FILE *fp; fp=fopen(score.txt,w); for(i=0; i4; i++) { fprintf(fp, num:%s name:%s class:%s\n,stud[i].num ,stud[i].name, stud[i].class ); for(j=0; j3; j++) { fprintf(fp, score%d=%d ,j+1, stud[i].score[j]); } printf(\n);

文档评论(0)

1亿VIP精品文档

相关文档