请大侠们制作一个简易的学生成绩管理系统(用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...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行