# include <iostream>
using namespace std;
# include <string>
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
int j=-1;
class account //定义账户类
{
public:
string zhanghao; //帐号
long int code; //密码
string name;
string id;
string tel;
string add;
long int money; //余额
string zhlx; //账户类型
//data openday;
void print();
};
account a[100];
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
void account::print() //定义输出函数
{
cout<<"帐号:"<<zhanghao<<endl;
cout<<"姓名:"<<name <<endl;
cout<<"身份证号码:"<<id <<endl;
cout<<"联系电话:"<<tel <<endl;
cout<<"地址:"<<add <<endl;
cout<<"余额:"<<money <<endl;
cout<<"帐户类型:"<<zhlx <<endl;
// cout<<"开户日期:"<<this->openday.year<<"."<<this->openday.month<<"."<<this->openday.day<<endl;
}
/////////////////////////////////////////////////////////////
class user_common:public account //定义普通用户类
{
public:
void saving(); //声明存款函数
void withdraw(); //声明取款函数
void common_check(); //声明查询函数
};/////////////////////////

这是一个用C++编写的银行管理系统,包括账户类(account)和用户类(user_common、user_special),支持账户的创建、查询、存款、取款、删除和修改等功能。管理员可以进行开户、查询、删除和修改所有账户信息,而普通用户则能进行个人账户的操作。
最低0.47元/天 解锁文章
6424





