没有合适的资源?快使用搜索试试~ 我知道了~
c++银行管理系统·
需积分: 9 108 下载量 150 浏览量
2008-12-17
13:23:50
上传
评论
收藏 10KB TXT 举报
温馨提示
试读
13页
用C++代码编写的,模拟银行的ATM机。管理员密码为5555.
资源推荐
资源详情
资源评论
// 银行管理系统.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
class Account{
int id;//帐号id设置为8位
string usrname;
int pwd;//密码为6位
double money;//余额
bool onLine;//是否在线
public:
//static int clientsNum;//银行总的客户数目
Account(){}
Account(int id,string name,int pwd,double money):id(id),usrname(name),pwd(pwd),money(money){
onLine = false;
}
int getId(){//获得id
return id;
}
void setId(int id){
this->id = id;
}
string getUsrname(){
return usrname;
}
void setUsrname(string usrname){
//
#include "stdafx.h"
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
class Account{
int id;//帐号id设置为8位
string usrname;
int pwd;//密码为6位
double money;//余额
bool onLine;//是否在线
public:
//static int clientsNum;//银行总的客户数目
Account(){}
Account(int id,string name,int pwd,double money):id(id),usrname(name),pwd(pwd),money(money){
onLine = false;
}
int getId(){//获得id
return id;
}
void setId(int id){
this->id = id;
}
string getUsrname(){
return usrname;
}
void setUsrname(string usrname){
this->usrname = usrname;
}
int getPwd(){
return pwd;
}
void setPwd(int pwd){
this->pwd = pwd;
}
double getMoney(){
return money;
}
void setMoney(double money){
this->money = money;
}
char choose(){
char ch;
cout<<"〖请选择您的业务:〗"<<endl;
cout<<"【===1.存款===】"<<endl;
cout<<"【===2.取款===】"<<endl;
cout<<"【=3.查询余额=】"<<endl;
cout<<"【=4.修改密码=】"<<endl;
cout<<"【===5.转帐===】"<<endl;
cout<<"【===6.退出===】"<<endl;
cin>>ch;
return ch;
}
void work(char op){//根据选择进行业务
switch(op){
case('1'):
save();
}
int getPwd(){
return pwd;
}
void setPwd(int pwd){
this->pwd = pwd;
}
double getMoney(){
return money;
}
void setMoney(double money){
this->money = money;
}
char choose(){
char ch;
cout<<"〖请选择您的业务:〗"<<endl;
cout<<"【===1.存款===】"<<endl;
cout<<"【===2.取款===】"<<endl;
cout<<"【=3.查询余额=】"<<endl;
cout<<"【=4.修改密码=】"<<endl;
cout<<"【===5.转帐===】"<<endl;
cout<<"【===6.退出===】"<<endl;
cin>>ch;
return ch;
}
void work(char op){//根据选择进行业务
switch(op){
case('1'):
save();
剩余12页未读,继续阅读
资源评论
haoshutong
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功