设为首页
收藏本站
开启辅助访问
切换到窄版
登录
立即注册
中问网首页
我的收藏
站长博客
搜索
搜索
本版
帖子
用户
第一问答网
»
论坛
›
中问网
›
问答
›
请大侠们制作一个简易的学生成绩管理系统(用C语言)参 ...
返回列表
发新帖
请大侠们制作一个简易的学生成绩管理系统(用C语言)参考一下。谢谢!
[复制链接]
11
|
2
|
2011-6-13 23:57:29
|
显示全部楼层
|
阅读模式
#include "stdio.h"
# define N 5
struct Student
{
int num;
char name[20];
char sex;
double score[5];
};
int main()
{
int mainmenu_display();
int search_menu();
void input(struct Student stu[]);
void search();
void add_student();
void del_student();
void display();
void grade_dealwith();
int choice1,choice2;
choice1=mainmenu_display();
switch(choice1)
{
case 1:input(struct Student stu[]);break;
case 2:choice2=search_menu();break;
case 3:add_student();break;
case 4:del_student();break;
case 5:display();break;
case 6:grade_dealwith();break;
case 0:return -1;
}
return 0;
}
int mainmenu_display()
{
int choice;
printf("\n\n
************主菜单*********\n\n");
printf("
*
1--输入学生信息
*\n");
printf("
*
2--学生信息查找
*\n");
printf("
*
3--增加某个学生
*\n");
printf("
*
4--删除某个学生
*\n");
printf("
*
5--显示学生信息
*\n");
printf("
*
6--学生成绩处理
*\n");
printf("
*
0--退出
*\n");
printf("
***************************\n\n");
printf("请输入你的选择:");
scanf("%d",&choice);
return(choice);
}
int search_menu()
{
int choice;
printf("\n\n
**********查询方式*********\n\n");
printf("
*
a--根据姓名查找
*\n");
printf("
*
b--根据学号查找
*\n");
printf("
*
c--根据年龄查找
*\n");
printf("
*
d--根据性别查找
*\n");
printf("
*
e--根据成绩查找
*\n");
printf("
*
t--退出
*\n");
printf("
***************************\n\n");
printf("请输入你的选择:");
scanf("%d",&choice);
return(choice);
}
这个只是菜单而已,我想了解它的各个函数的写法。
可以发到我的邮箱
[email protected]
谢谢了!!!
回复
使用道具
举报
千问
|
2011-6-13 23:57:29
|
显示全部楼层
你的那不是吗???还问...
回复
使用道具
举报
千问
|
2011-6-13 23:57:29
|
显示全部楼层
yumr591...
回复
使用道具
举报
返回列表
发新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
回帖后跳转到最后一页
千问
主题
0
回帖
4882万
积分
论坛元老
论坛元老, 积分 48824836, 距离下一级还需 -38824837 积分
论坛元老, 积分 48824836, 距离下一级还需 -38824837 积分
积分
48824836
加好友
发消息
回复楼主
返回列表
问答
热门排行