365文库
登录
注册
搜索
下载二维码
App功能展示
海量免费资源 海量免费资源
文档在线修改 文档在线修改
图片转文字 图片转文字
限时免广告 限时免广告
多端同步存储 多端同步存储
格式轻松转换 格式轻松转换
用户头像
做你的王爱你的皇 上传于:2024-06-27
#include #define N 2 struct student {int xh; float score[4]; char name[20]; float average; int num; }std[100]; int n=0; /*学生总人数*/ /* 输入学生数据*/ void srsj() { FILE *fp; fp=fopen("lishengjie.txt","w"); int i,j; for(i=0;i",i+1); printf("请输入学生学号:
"); scanf("%d",&std[i].xh); for(j=0;j"); printf("请输入学生学号:
"); scanf("%d",&std[i].xh); } } printf("请输入学生姓名
tj