没有合适的资源?快使用搜索试试~ 我知道了~
C语言学生信息管理系统代码.docx
0 下载量 6 浏览量
2023-08-04
09:11:06
上传
评论
收藏 31KB DOCX 举报
温馨提示
试读
31页
C语言学生信息管理系统代码.docx
资源推荐
资源详情
资源评论
1
2020年4月19日
C语言学生信息管理
系统代码
文档仅供参考
2
2020年4月19日
X X 师 范 大 学
实 验 报 告
课 程 C语言课程设计
任课老师
学 号
姓 名
院 系
_______年______月至_______年_______月
注意事项
文档仅供参考
3
2020年4月19日
1. 使用C语言,代码已在vs中运行过,能够运行(主要功能都能
实现)
2. 需求分析,前期设计都没写,请同学们自己完成
3. 附带有 student.txt 文件,将其移动至 F:\stu
文件夹中,运行程序时可直接选
6号指令,从中读取学生信息。如果没有该txt文件(可能会在
上传过程中丢失),仍需在F盘下新建stu文件夹,各文件将保
存于该文件夹中
4. 按word格式输出尚未设计好,有兴趣可自己完成
5. 按excel格式输出,完成后需自行调整相应列宽(拉宽),使内
容美观
6. 从下一页开始,复制余下全文,粘贴即可运行
文档仅供参考
4
2020年4月19日
#include<stdio.h>
#define M 30 //班级总人数,暂定30,可修改
#define N 3 //课程成绩门数,暂定3,可修改
int inputstu(struct student stu[], int m, int n);
void prinstu(struct student stu[], int m, int n);
int sortsno(struct student stu[], int m);
int sortage(struct student stu[], int m);
int sortmark(struct student stu[],int sm[], int m, int n);
void prinsort(struct student stu[], int m, int n);
int writefile(struct student stu[], FILE *fp, int m, int n);
int readfile(struct student stu[], FILE *fp, int m, int n);
int fprinword(struct student stu[], FILE *fp, int m, int n);
int fprinexcel(struct student stu[], FILE *fp, int m, int n);
int seachsno(struct student stu[],long sno, int m,int n);
int seachsname(struct student stu[],char sname[], int m, int n);
int desno(struct student stu[], long sno, int m);
文档仅供参考
5
2020年4月19日
int desname(struct student stu[], char sname[], int m);
int cutin(struct student stu[], int m, int n);
struct student
{
int turn;
long sno;
char sname[20];
char sgrade[10];
char sbirth[10];
int smark[N];
};
void main()
{
int i = 0;
int con1 = 0;
int con2 = 0;
long sno;
char sname[20];
FILE *fp = NULL;
struct student stu[M];
for (i = 0; i < M; i++)
{
剩余30页未读,继续阅读
资源评论
yyyyyyhhh222
- 粉丝: 412
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 937712277954201实习5.word
- 2程序语言基础知识pdf1_1716337722703.jpeg
- 简单的Python示例,演示了如何使用TCP/IP协议进行基本的客户端和服务器通信
- 考试.sql
- keil2 + proteus + 8051.exe
- 1961ee27df03bd4595d28e24b00dde4e_744c805f7e4fb4d40fa3f695bfbab035_8(1).c
- mediapipe-0.9.0.1-cp37-cp37m-win-amd64.whl.zip
- windows注册表编辑工具
- mediapipe-0.9.0.1-cp37-cp37m-win-amd64.whl.zip
- 校园通行码预约管理系统20240522075502
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功