test.cpp
上传用户:szmwdq
上传日期:2022-07-16
资源大小:528k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #include <string>
  2. #include <iostream>
  3. using namespace std;
  4. #include "AcountList.h"
  5. #include "creditCard.h"
  6. #include "RoseCard.h"
  7. void main(){
  8. AcountList list;
  9. cout<<"开户操作:n";
  10. BankCard  s("bank3296",123,300,"建设银行");
  11. creditCard d(10000,"credit250",234,1000,"工商银行");
  12. RoseCard c(remitByCable,"rose888",345,500,"招商银行");
  13. list.Add(s);  list.Add(d); list.Add(c); list.display();
  14. cout<<"存款操作:n";
  15. list.deposit("bank3296",8000);
  16. list.deposit("credit250",4000);
  17. list.deposit("rose888",3000);
  18. list.display();
  19. cout<<"取款操作:n";
  20. list.withdrawal("rose888",1000);
  21. list.withdrawal("credit250",1000);
  22. list.withdrawal("bank3296",1000);
  23. list.display();
  24. }