
二分查找
有序表 class Ordered_list:public List<Record>{ public: Ordered_list(); Error_code insert(const Record &data); Err...
有序表 class Ordered_list:public List<Record>{ public: Ordered_list(); Error_code insert(const Record &data); Err...
//结点 struct Node{ Node_entry entry; Node *next; Node(); Node(Node_entry item,Node *add_on=NULL); }; Node::Node() { next=...
typedef Stack_entry Node_entry;//使存储在栈中的元素和结点具有相同的类型 class Stack{ public: Stack(); Stack(const Stack &original)//复制构...
#define max_list 10 template<class List_entry> class List{ public: List(); int size() const; bool full() const; bo...
class Queue{ public: Queue(); bool empty() const; Error_code append(const Queue_entry &item);//入队 Error_code serve()...
队头 front 队尾 rear或tail 类型 Queue_entry const int max=10; /*******************************/ class Queue{ public: Queue(); b...
#include <stack> enum 枚举类型名 {枚举常量表列}; //枚举类型的一般形式 enum Error_code {success,overflow,underflow}; const int max=10; ...