资源描述:
《银行管理系统设计代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、#defineN1000#include#include//密码用#include#include#includevoiddenglu1();voiddenglu2();voiddenglu3();voidjiemian();voidlianjie();voidmenu();voidmenu2();voidkaihu();voidcunkuan();voidqukuan();voidchazhang();voidzhuanzhang();voidtuichu();voidliebiao()
2、;voidchaxun();voidzhuxiao();voidqumi();voidkhcg();voidgaimi();voidnamesort();voidzhanghaosort();voidyuesort();voidall();/*定义结构体*/intcount=2;intflag1,flag2,flag3,flag4,flag5,flag6;//设置哨兵intcount2=0;//三次密码不对就退出structbank{charname[20];//姓名charnum1[15];//身份证charnum2[20];//账号charnum3[7];//密码floatm
3、oney;}user[N],admin,temp;/*初始化用户*/voidchushihua(){//设置管理员strcpy(admin.name,"黎小锋");strcpy(admin.num1,"318");strcpy(admin.num2,"admin");strcpy(admin.num3,"admin");//初始化一个用户strcpy(user[0].name,"黎小锋");strcpy(user[0].num1,"318");strcpy(user[0].num2,"");//黎小锋江珊strcpy(user[0].num3,"");//65user[0].mo
4、ney=5000;//初始化第二个用户strcpy(user[1].name,"江珊");strcpy(user[1].num1,"319");strcpy(user[1].num2,"");strcpy(user[1].num3,"");user[1].money=4000;}/*主函数*/voidmain(){chushihua();lianjie();denglu1();}/*欢迎界面*/voidjiemian(){printf("");printf("");printf("");printf("t*****************************★★
5、★*****************************");printf("t**");printf("t**");printf("t*☆欢迎进入中国银行☆*");printf("t**");printf("t**");printf("t*****************************★★★*****************************");}/*连接缓冲*/voidlianjie(){inti,j;system("cls");system("color3e");jiemian();printf("");pr
6、intf("");printf("");printf("tt连接登陆中:");for(j=0;j<17;j++){for(i=0;i<;i++);if(j%2==0){printf("★");}elseprintf("☆");}}/*登录主界面*/voiddenglu1(){system("cls");inti;system("color4e");jiemian();printf("");printf("");printf("");printf("ttt请选择您要办理的业务:");printf("tttt★1.管理登录");print
7、f("tttt☆2.用户登录");printf("tttt★3.申请账号");printf("tttt☆4.退出");printf("ttt请输入您要办理的项目:");fflush(stdin);scanf("%d",&i);switch(i){case1:lianjie();denglu3();break;case2:lianjie();denglu2();break;case3:lianjie();kaihu();break;case