c语言(今天之内发来)

[复制链接]
查看11 | 回复1 | 2013-7-10 10:27:59 | 显示全部楼层 |阅读模式
//输入30个人的学号/姓名/3门课成绩,把总成绩和平均分保存到student.txt中。其余功能自补#include#include#defineN30 //30人#defineM3 //3门课structstudent{ int ID;
charname[20]; float score[M]; float ave;}stu[N];void main(){ FILE *fp=NULL; int i,j; char ch; float sum=0.0; fp=fopen("student.txt","wb"); if(fp==NULL) {printf("Cannot open ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行