/*
*Copyright (c) 2014,烟台大学计算机学院
*All right reserved.
*文件名称:main.cpp
*作 者:臧云吉
*完成时间:2014年11月18日
*版 本 号:v1.0
*描 述:银行系统框架
*/
#include<iostream>
using namespace std;
int main()
{
int PASSWORD=123456;
int money=10000;
bool if_pass=false;
int get_passwd;
int choice;
cout<<"Please enter password:";
cin>>get_passwd;
//密码判断
while(PASSWORD!=get_passwd && get_passwd!=0)
{
cout<<"PASSWORD ERROR!";
}
if(get_passwd==0)
{
cout<<"欢迎下次光临!"<<endl;
return;
}else
{
if_pass=true;
cout<<"Correct!"<<endl;
}
//业务处理
do
{
cout << "* 您可以办理下面的业务:" << endl;
cout << "* 1.查询" << endl;
cout << "* 2.取款" << endl;
cout << "* 3.存款" << endl;
cout << "* 4.转账" << endl;
cout << "* 0.退出" << endl;
cout << "* 请输入(0~4):";
cin >> choice;
switch (choice)
{
case 1:
case 2:
case 3:
case 4:
case 5:
}
}while(choice != 0);
cout<<"欢迎下次光临!"<<endl;
}
简单的银行系统框架
最新推荐文章于 2022-01-23 01:39:35 发布