?? accountlist.h
字號:
//=====================================
// accountlist.h
//=====================================
#ifndef ACCOUNTLIST
#define ACCOUNTLIST
#include"account.h"
//-------------------------------------
class Node{
public:
Account& acnt;
Node *next, *prev;
Node(Account& a):acnt(a),next(0),prev(0){}
bool operator==(const Node& n)const{ return acnt==n.acnt; }
};//-----------------------------------
class AccountList{
int size;
Node *first;
public:
AccountList():first(0),size(0){}
Node* getFirst()const{ return first; }
int getSize()const{ return size; }
void add(Account& a);
void remove(string acntNo);
Account* find(string acntNo)const;
bool isEmpty()const{ return !size; }
void display()const;
~AccountList();
};//-----------------------------------
#endif // HEADER_ACCOUNTLIST
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -