#include <iostream.h>
#include <string.h>
class Account
{
private:
int ID;
char * Name;
double Balance;
public:
Account();
Account(int,const char * ,double);
void Saving();
int Withdraw();
void ShowMe();
int getID();
};
class Bank
{
private:
Account * account[50];
int maxID;
int accNum;
public:
Bank();
void Append();
void Delete();
void Query();
};
Account::Account()
{
ID = 0;
strcpy(Name," ");
Balance = 0;
}
Account::Account(int id,const char * name,double balance)
{
ID = id;
Name = new char[50];
strcpy(Name,name);
Balance = balance;
}
void Account::Saving()
{
double number;
cout<<"请输入您的存款金额:";
cin>>number;
Balance = Balance + number;
cout<<"您的帐户结余为"<<Balance<<endl;
return;
}
int Account::Withdraw()
{
double number;
cout<<"请输入您的取款金额:";