职工管理系统(系统密码:123456 修改数据密码:12345)
2008-03-08 12:51:59 来源:WEB开发网核心提示:#include"stdio.h"#include"string.h"void shUChu(void);void shuju(void),jisuan(void),chaxun(void);void renyuan(void),tuichu(void),xiugai(void)
#include"stdio.h"
#include"string.h"
void shUChu(void);
void shuju(void),jisuan(void),chaxun(void);
void renyuan(void),tuichu(void),xiugai(void);
int s=0,cs=0,us=3;
char x[1][6]={'1','2','3','4','5','6'};
char yyy[1][6],kk;
char y1,y; /*选择*/
char n;
int i,j,k=0,l,jb=1000; /*变量定义:n选择 i,j 循环变量 l 选项*/
int sum[10],koukuan[10],jiangjin[10],nianlin[10],ygh[10]; /* 数据录入*/
char *xingming[10]={"王凯","白永胜","肖佑","孙莉","袁伟","郭妍","周鑫","李小虎","马亮","张学丰"};
char xingbie[10][1]; main()
{ aa:
clrscr();
PRintf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t 输入次数为三次!");
printf("\n\t\t\t 输入完按回键结束!");
printf("\n\t\t\t\t 请输入密码:");
for(s=0;s<6;s++)
{
yyy[0][s]=getch();
if((yyy[0][s]>='0')&&(yyy[0][s]<='9')(yyy[0][s]>='a')&&(yyy[0][s]<='z')(yyy[0][s]>='A')&&(yyy[0][s]<='Z'))
{
printf("*");
}
else
goto bb;
}
kk=getch();
bb:
for(s=0;s<6;s++)
{
if(x[0][s]!=yyy[0][s])
{
cs++;
if(cs>=3)
{
printf("\n\n\n\t\t\t Sorry!!! 您的输入次数已到!\n");
printf("\t\t\t 不能进入系统!!!");
getch();
clrscr();
exit();
}
printf("\n\n\n\t\t\t 密码错误请重新输入!");
printf("\n\t\t\t 您还有%i次机会!",--us);
getch();
clrscr();
goto aa;
}
}
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
printf("\t\t说明:【使用前必需先录入数据,否则功能无法实现!】");
y=getch();
clrscr();
jm:
printf(" \n\t* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 工资治理系统 * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * * * * * * * * * * * * * * * * * * * * * *\n");
printf(" \t*\t * * * * * * * * * * * * * * * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 1.数据录入 * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 2.工资计算 * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 3.查询统计… * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 4.职工基本资料查询… * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 5.查看所有记录 * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 6.修改数据(需要权限密码) * *\n");
printf(" \t*\t * * *\n");
printf(" \t*\t * 7.退出系统 * *\n");
printf(" \t*\t * * &nb
[]
更多精彩
赞助商链接