#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "List1.h"
void showmenu(void)
{
printf("\n\n\n\n\n\n\n\n");
printf(" **************************************************************************");
printf("\n * *** ********************************************** *** *\n");
printf(" * *** ** 学生管理系统 ** *** *\n");
printf(" * *** ***** 1.学生基本信息管理 ***** *** *\n");
printf(" * ******** 2.学生成绩信息管理 ******** *\n");
printf(" * *** ***** 3.文件操作 ***** *** *\n");
printf(" * *** ** 4.退出 ** *** *\n");
printf(" * *** ********************************************** *** *\n");
printf(" **************************************************************************\n");
printf("\n *请选择:");
}
void showmenu1(void)
{
int choice;
node *p;
char a[10], b[10];
printf("\n\n\n\n\n\n\n\n");
printf("\n ***********************\n");
printf(" ** 1.浏览 **\n");
printf(" ** 2.添加 **\n");
printf(" ** 3.删除 **\n");
printf(" ** 4.修改 **\n");
printf(" ** 5.查找 **\n");
printf(" ** 6.退出 **\n");
printf(" ***********************\n");
printf("\n *请选择:");
scanf_s("%d", &choice);
if (choice == 1 || choice == 2 || choice == 3 || choice == 4 || choice == 5 || choice == 6)
while (choice != 6)
{
switch (choice)
{
case 1:system("cls"); Print(head); printf("\n*请点击回车返回二级菜单"); system("pause");
system("cls"); break;
case 2:system("cls"); p = Creat(head); head = p; break;
case 3:system("cls"); printf("*请输入你要删除的学生的学号:");
scanf_s("%s", a, 10);
Delete(head, a); printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
case 4:system("cls"); Modify(head); printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
case 5:system("cls"); printf("*请输入你要查找的学生的学号:");
scanf_s("%s", b, 10);
serach(head, b); printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
}
break;
}
else { system("cls"); printf("无该选项,请按照提示操作"); system("pause"); system("cls"); }
if (choice == 6) { system("cls"); return; }
showmenu1();
}
void showmenu2(void)
{
char a[10];
int choice;
printf("\n\n\n\n\n\n\n\n");
printf("\n ***********************\n");
printf(" ** 1.浏览 **\n");
printf(" ** 2.修改 **\n");
printf(" ** 3.查找 **\n");
printf(" ** 4.退出 **\n");
printf(" ***********************\n");
printf("\n *请选择:");
scanf_s("%d", &choice);
if (choice == 1 || choice == 2 || choice == 3 || choice == 4)
while (choice != 4)
{
switch (choice)
{
case 1:system("cls"); Print1(head); printf("\n*请点击回车返回二级菜单"); system("pause");
system("cls"); break;
case 2:system("cls"); Modify1(head); printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
case 3:system("cls"); printf("*请输入你要查找的学生的学号:");
scanf_s("%s", a, 10);
serach1(head, a); printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
}
break;
}
else { system("cls"); printf("无该选项,请按照提示操作"); system("pause"); system("cls"); }
if (choice == 4) { system("cls"); return; }
showmenu2();
}
void showmenu3(void)
{
int choice;
printf("\n\n\n\n\n\n\n\n");
printf(" ************************");
printf("\n ** 1.按平均成绩排名 **\n");
printf(" ** 2.按学号顺序排名 **\n");
printf(" ** 3.按班级归类 **\n");
printf(" ** 4.退出 **\n");
printf(" ************************\n");
printf(" *请选择:");
scanf_s("%d", &choice);
if (choice == 1 || choice == 2 || choice == 3 || choice == 4)
while (choice != 4)
{
switch (choice)
{
case 1:system("cls"); head = Order(head); Print2(head);
printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
case 2:system("cls"); head = Order1(head); Print2(head);
printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); printf("错啦"); break;
case 3:system("cls"); head = Order2(head); Print2(head);
printf("\n*请点击回车返回二级菜单"); system("pause"); system("cls"); break;
}
break;
}
else { system("cls"); printf("无该选项,请按照提示操作"); system("pause"); system("cls"); }
if (choice == 4) { system("cls"); return; }
showmenu3();
}
int showmenu4(void)
{
int i;
int choice;
printf("\n\n\n\n\n\n\n\n");
printf(" ************************");
printf("\n ** 1.新用户登录入口 **\n");
printf(" ** 2.老用户登录入口 **\n");
printf(" ************************\n");
printf(" *请选择:");
scanf_s("%d", &choice);
if (choice == 1)
{
system("cls");
printf("\n\n\n\n\n\n\n\n");
printf(" ******************");
printf("\n ** 1.注册账号 **\n");
printf(" ** 2.忘记密码 **\n");
printf(" ******************\n");
printf(" *请选择:");
scanf_s("%d", &i);
system("cls");
if (i == 1)
{
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t对不起,该功能还未完善,请联系管理员");
printf("五秒后将自动退出系统");
Sleep(2000);
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t打我呀");
Sleep(2000);
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t来打我呀");
Sleep(2000);
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t你来打我呀");
Sleep(2000);
system("cls");
return 0;
}
if (i == 2)
{
int x = 3;
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t请输入曾用密码(你只有三次输入机会,若都错将自动退出系统):");
scanf_s("%s", f, 10);
while (strcmp(b, f) != 0)
{
x--;
if (x == 0) { printf("\t\t\t\t"); return 0; }
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t错误,你还有%d次机会,请再次输入曾用密码:", x);
scanf_s("%s", f, 10);
}
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t密码匹配成功,请输入新密码:");
scanf_s("%s", b, 10);
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t重置登录系统中,请等待......");
Sleep(3000);
没有合适的资源?快使用搜索试试~ 我知道了~
学生成绩管理系统(C语言版)
共49个文件
tlog:12个
c:10个
obj:10个
需积分: 50 48 下载量 197 浏览量
2017-08-01
17:10:45
上传
评论 5
收藏 11.14MB ZIP 举报
温馨提示
基本的搜索、查找、删除。排序等等的功能齐全,菜单界面设计较为合理......
资源推荐
资源详情
资源评论
收起资源包目录
学生成绩管理系统(C语言).zip (49个子文件)
学生成绩管理系统(C语言)
.vs
1.261
v14
.suo 58KB
1.261.VC.db 28.48MB
1.261.sln 1KB
1.261
modify.c 1KB
order.c 2KB
List1.h 1KB
start.c 856B
main.c 2KB
delete.c 424B
1.261.vcxproj 8KB
serach.c 912B
1.261.vcxproj.filters 2KB
showmenu.c 8KB
creat.c 2KB
print.c 2KB
Debug
vc140.pdb 100KB
学生成绩管理系统.tlog
CL.write.1.tlog 5KB
CL.read.1.tlog 110KB
CL.command.1.tlog 19KB
link.write.1.tlog 2KB
学生成绩管理系统.lastbuildstate 253B
link.command.1.tlog 8KB
link.read.1.tlog 5KB
showmenu.obj 48KB
modify.obj 14KB
serach.obj 10KB
1.261.log 558B
order.obj 7KB
main.obj 27KB
vc140.idb 419KB
delete.obj 7KB
creat.obj 14KB
print.obj 13KB
1.261.tlog
CL.write.1.tlog 10KB
CL.read.1.tlog 73KB
1.261.lastbuildstate 225B
CL.command.1.tlog 6KB
link.write.1.tlog 2KB
link.command.1.tlog 3KB
link.read.1.tlog 5KB
start.obj 20KB
file.obj 2KB
file.c 365B
Debug
学生成绩管理系统.exe 56KB
学生成绩管理系统.ilk 335KB
1.261.ilk 338KB
学生成绩管理系统.pdb 764KB
1.261.exe 56KB
1.261.pdb 724KB
共 49 条
- 1
资源评论
BoCong-Deng
- 粉丝: 1919
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功