⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountlist.cpp

📁 是银行atm机的基本功能实现
💻 CPP
字号:
// AccountList.cpp: implementation of the AccountList class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AccountList.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

AccountList::AccountList()
{

}

AccountList::~AccountList()
{

}

void AccountList::AddAccount(Account *pAccount)
{
	AddTail(pAccount);
}

void AccountList::DeleteAccount(Account *pAccount)
{
	//到目前为止不支持删除用户
	//保留接口以备后用
}

Account * AccountList::GetAccountByID(int id)
{
	int iCount=GetCount();
	for(int i=0;i<iCount;i++){
		Account *pAccount = (Account *)FindIndex(i);
		if(pAccount->GetID()==id){
			return pAccount;
		}
	}
	return NULL;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -