没有合适的资源?快使用搜索试试~ 我知道了~
首页c语言------网吧计费系统源代码
资源详情
资源评论
资源推荐
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#define N 5
struct user
{
char ID_card[30];
char user_card[10];
char user_level[50];
float add_money; //充值
};
struct LinkList
{
struct user struct_user;
LinkList *pNext;
};
struct control
{
char control_name[20];
char control_password[15];
}control_person={"apollo","apollo"};//管理员账户和密码设置
////////////////////////////////
void enter(int x);
void tab(int x);
void start();
void login();
void mainmenu();
void submenu1();
void submenu2();
void submenu3();
void submenu4();
void xian_shi(LinkList *pHead);
LinkList *adduser(LinkList *pHead);
LinkList *addmoney(LinkList *pHead); //充值
LinkList *shang_wang(LinkList *pHead); //上网
LinkList *zhu_xiao(LinkList *pHead); //注销会员
void save(LinkList *pTemp);
LinkList *readsave();
void cha_xun_shen(LinkList *pHead);
void cha_xun_hui(LinkList *pHead);
/////////////////////
//启动
void start()
{
system("cls");
for(int k=0;k<2;k++)
{
for(int i=0;i<N;i++)
{
system("color B");
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 1 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 2 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 3 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 4 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 5 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 6 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 7 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 8 end
enter(7);
tab(3);
printf(" 星星网吧计费管理系统 ");
enter(2);
tab(4);
printf(" ■");
enter(1);
tab(4);
for(i=0;i<100000000;i++)
{}
system("cls"); //circle 9 end
}
}
login();
}
//登陆函数
void login()
{
char name[20];
char password[15];
while(1)
{
system("cls");
enter(7);
tab(3);
printf(" 管理员登录 ");
enter(2);
tab(4);
printf("Count:");
fflush(stdin);
if(strcmp(gets(name),control_person.control_name)==0)
{
leap: system("cls");
enter(7);
tab(3);
printf(" 管理员登录 ");
enter(2);
tab(4);
printf("Password:");
fflush(stdin);
if(strcmp(gets(password),control_person.control_password)==0)
{
mainmenu();
break;
}
else
{
char ch;
tab(4);
printf("Your password is error!\n");
tab(4);
printf("Do you want to try again?(Y/N):");
scanf("%c",&ch);
if(ch=='Y' || ch=='y')
goto leap;
else if(ch=='N' || ch=='n')
exit(0);
else
{
system("cls");
enter(7);
tab(1);
printf("Error!Please check your code then login again,thank you!\n");
tab(3);
exit(0);
}
}
}
else
{
char i;
剩余22页未读,继续阅读
H.ZHAO
- 粉丝: 1
- 资源: 38
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0