test.cpp
资源名称:ATM.rar [点击查看]
上传用户:szmwdq
上传日期:2022-07-16
资源大小:528k
文件大小:1k
源码类别:
金融证券系统
开发平台:
Visual C++
- #include <string>
- #include <iostream>
- using namespace std;
- #include "AcountList.h"
- #include "creditCard.h"
- #include "RoseCard.h"
- void main(){
- AcountList list;
- cout<<"开户操作:n";
- BankCard s("bank3296",123,300,"建设银行");
- creditCard d(10000,"credit250",234,1000,"工商银行");
- RoseCard c(remitByCable,"rose888",345,500,"招商银行");
- list.Add(s); list.Add(d); list.Add(c); list.display();
- cout<<"存款操作:n";
- list.deposit("bank3296",8000);
- list.deposit("credit250",4000);
- list.deposit("rose888",3000);
- list.display();
- cout<<"取款操作:n";
- list.withdrawal("rose888",1000);
- list.withdrawal("credit250",1000);
- list.withdrawal("bank3296",1000);
- list.display();
- }