#include"bank.h"
#include<iostream>
#include<conio.h>
using namespace std;
int login();
int regist();
int client(int n);
void main()
{
char ch;
//怀�貐巏暱�擂
while(1)
{
system("cls");
cout<<endl<<endl<<" 辣茩妏蚚掛炵苀"<<endl;
cout<<"帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘帘"<<endl<<endl;
cout<<" 汴汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽沍"<<endl;
cout<<" 沃 沃"<<endl;
cout<<" 沃 1.輛�鄳妡� 沃"<<endl;
cout<<" 沃 沃"<<endl;
cout<<" 沃 2.陔膘梛誧 沃"<<endl;
cout<<" 沃 沃"<<endl;
cout<<" 沃 3.奪燴梛誧 沃"<<endl;
cout<<" 沃 沃"<<endl;
cout<<" 沃 0.豖堤炵苀 沃"<<endl;
cout<<" 沃 沃"<<endl;
cout<<" 沂汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽汽災"<<endl;
cout<<endl<<"③怀�踽蒫麵√髜鷓�:"<<endl;
ch = getch();
if(ch=='1')
{
login(); //輛�鄳妡宋缺�
system("cls");
}
else if(ch=='2')
{
regist(); //陔膘梛誧滲杅
system("cls");
}
else if(ch=='3')
{
// guanli(); //奪燴梛誧滲杅
system("cls");
}
else if(ch=='0')
{
// endshow();
break;
}
else
{
system("cls");
continue;
}
}
}
int regist()
{
char tcount[20];
char tpassword[20];
system("cls");
cout<<"③怀�鄳妧�"<<endl;
cin>>tcount;
cout<<"③怀�踼僉�"<<endl;
cin>>tpassword;
count[cnum].set(tcount,tpassword);
cnum++;
cout<<"蛁聊傖髡"<<endl;
return 0;
}
int login()
{
int i;
char tcount[20];
char tpassword[20];
system("cls");
cout<<"③怀�鄳妧驕芤僉�"<<endl;
while(scanf("%s%s",tcount,tpassword)==2)
{
for(i=0;i<cnum;i++)
{
if(count[i].check(tcount,tpassword))
{
client(i);
break;
}
}
break;
}
return 0;
}
int client(int n)
{
system("cls");
char ch;
cout<<"③怀�踽蒫麵√髜鷓�:"<<endl;
cout<<"1.湔遴"<<endl;
cout<<"2.�▼�"<<endl;
cout<<"3.蛌梖"<<endl;
cout<<"4.脤戙"<<endl;
cout<<"5.殿隙"<<endl;
ch = getch();
if(ch=='1')
{
}
else if(ch=='2')
{
}
else if(ch=='3')
{
}
else if(ch=='4')
{
}
else if(ch=='5')
{
}
return 0;
}