AcountList.h
资源名称:ATM.rar [点击查看]
上传用户:szmwdq
上传日期:2022-07-16
资源大小:528k
文件大小:1k
源码类别:
金融证券系统
开发平台:
Visual C++
- // AcountList.h: interface for the AcountList class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ACOUNTLIST_H__FC4A6836_FC15_4A0B_9874_8FC9F0189D0B__INCLUDED_)
- #define AFX_ACOUNTLIST_H__FC4A6836_FC15_4A0B_9874_8FC9F0189D0B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "BankCard.h"
- class Node
- {
- public:
- BankCard* bankt;
- Node* next;
- Node(BankCard* pa){bankt=pa;next=NULL;}
- };
- class AcountList
- {
- int size; Node* first;
- public:
- AcountList():size(0),first(NULL){} //构造
- void Add(BankCard& a);//增加账户
- void withdrawal(string ,double ); //取款
- void deposit(string ,double ); //存款
- BankCard* find(string CardNum)const; //查找
- void display()const; //显示
- ~AcountList(); //析构
- };
- #endif // !defined(AFX_ACOUNTLIST_H__FC4A6836_FC15_4A0B_9874_8FC9F0189D0B__INCLUDED_)