#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
void start(); /*启动函数*/
void welcome(); /*欢迎主界面*/
void login(); /*登录界面*/
void regist(); /*注册用户*/
void loginsystem(); /*登录系统*/
void exitsystem(); /*安全退出系统*/
int main()
{
start();
return 0;
}
void start() /*启动函数*/
{
int isleep,i;
system("color 9");
for(i=1;i<=1;i++)
{
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动.\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动..\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动...\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动....\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动.....\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙
⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动......\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动.......\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动........\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
printf("\n\n\n\n\n\n\n\n\n\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙ 欢迎使用学生成绩管理系统 ⊙\n");
printf("\t\t\t⊙ ⊙\n");
printf("\t\t\t⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙⊙\n");
printf("\n\t\t\t系统开始启动.........\n");
for(isleep=1;isleep<=100000000;isleep++)
{}
system("CLS");
}
welcome();
}
void welcome() /*欢迎主界面*/
{
system("CLS");
system("color 2");
printf("\n\n\n\n\n\n\t\t\t★★★★★★★★★★★★★★\n");
printf("\t\t\t★ ★\n");
printf("\t\t\t★ 欢迎使用成绩管理系统 ★\n");
printf("\t\t\t★ ★\n");
printf("\t\t\t★ 设计者:宋晓 ★\n");
printf("\t\t\t★ ★\n");
printf("\t\t\t★ 日期:2011.9.28 ★\n");
printf("\t\t\t★ ★\n");
printf("\t\t\t★★★★★★★★★★★★★★\n");
printf("\n\t\t\t按任意键继续...");
getch();
login();
}
void login() /*登录界面*/
{
int select;
system("CLS");
system("color A");
system("CLS");
system("color B");
printf("\n\n\n\n\n\t\t\t※※※※※※※※※※※※\n");
printf("\t\t\t※ ※\n");
printf("\t\t\t※ 1.注册用户 ※\n");
printf("\t\t\t※--------------------※\n");
printf("\t\t\t※ 2.登录系统 ※\n");
printf("\t\t\t※--------------------※\n");免费网站源码资源分享
printf("\t\t\t※ 3.退出系统
※\n");
printf("\t\t\t※ ※\n");
printf("\t\t\t※※※※※※※※※※※※\n");
label:
printf("\n\t\t\t请选择【1-3】:");
scanf("%d",&select);
switch(select)
{
case 1:
regist();
break;
case 2:
loginsystem();
break;
case 3:
exitsystem();
break;
default:
{
printf("\t\t\t无此项,请重新选择\n");
goto label;
}
}
}
void regist() /*注册用户*/
{
char cleck[30],ctemp; /*存放键盘输入的密码*/
int count=0;
while(1)
{
printf("\t\t\t管理员密码:");
int i=0;
while((ctemp=getch())!='\r')
{
cleck[i++]=ctemp;
putchar('*');
}
cleck[i]='\0';
if(strcmp(cleck,"123456")==0)
{
printf("\n\t\t\t密码正确\n");
break;
}
else
{
printf("\n\t\t\t密码错误\n");
exit(0);
}
}
printf("注册用户\n");
printf("注册成功!\n");
printf("按任意返回登录界面...");
getch();
login();
system("CLS");
}
void loginsystem() /*登录系统*/
{
printf("登录系统\n");
}
void exitsystem() /*安全退出系统*/
{
printf("安全退出系统\n");
}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论