学生成绩管理系统框架源码

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "conio.h"
#include "windows.h"
char cStudNo[100][12]={"8001509060","8001509061"};
char cStudName[100][12]={"孙悟空","猪八戒"};
int nEng[100]={80,62};
int nMath[100]={76,92};
int nCompu[100]={84,72};
int nAvg[100]={80,75};
int nCount=2;
void GotoXY(int x,int y)
{
COORD c;
c.X=x,c.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c);
}
void OutPut(void)//将学生成绩打印到屏幕上
{

}
void StudNew(void)//增加学生
{

}
int SearchStud(void)//查询学生信息
{

}
void StudEdit(void)//修改学生成绩
{

}
void StudDel(void)//删除学生信息
{

}
void ScoreNew(void)//输入学生成绩
{

}
void ScoreEdit(void)//修改学生成绩
{

}
void ScoreStatis(void)//统计函数
{
}
void StudMenu()//学生信息二级菜单
{

}
void ScoreMenu(int iSelFlag)//学生成绩二级菜单
{

}
void QueryMenu(void)//统计函数二级菜单
{

}
void MainMemu()//主菜单函数
{
int a=1;
char cInput[10]="0";
while(a!=9)
{
system("cls");
GotoXY(28,5);
printf("*************************\n");
GotoXY(28,6);
printf("* 学生成绩档案管理 *\n");
GotoXY(28,7);
printf("*************************\n");
GotoXY(28,8);
printf("**-------操作选单------**\n");
GotoXY(28,9);
printf("*------学生档案管理-----1\n");
GotoXY(28,10);
printf("*------学生成绩管理-----2\n");
GotoXY(28,11);
printf("*--------信息查询-------3\n");
GotoXY(28,12);
printf("*-----------统计--------4\n");
GotoXY(28,13);
printf("*--------退出系统-------9\n");
GotoXY(28,14);
printf("*************************\n");
GotoXY(28,15);
printf("**--请用数字键选择操作-**\n");
GotoXY(28,16);
scanf("%s",cInput);
a=atoi(cInput);
switch(a)
{
case 1:
StudMenu();
break;
case 2:
ScoreMenu(0);
break;
case 3:
QueryMenu();
break;
case 4:
ScoreStatis();
getch();
break;
case 9:
printf("\n 退出 \n");
a=9;
break;
default :
printf("You enter number error,enter again!");
getch();
}
}
}
void main()
{
MainMemu();
}









相关文档
最新文档