摘要:
C#队列的循环实现:View Code class MyQueue <T> { private const int MAXLIMIT = 10; private int count; private int rear, front; private T[] entry = new T[MAXLIMIT]; public MyQueue() { count = 0; rear = MAXLIMIT - 1; front = 0; ... 阅读全文
posted @ 2012-10-24 19:42
zhoutk
阅读(922)
评论(0)
推荐(0)
摘要:
C++队列的循环实现:View Code const int MAXQUEUE = 10;template<class T>class ZtkQueue {public: ZtkQueue(); bool empty() const; ErrorCode append(const T &x); ErrorCode serve(); ErrorCode retrieve (T &x)const; bool full() const; int size() const; void clear(); ErrorCode serve_and_ret... 阅读全文
posted @ 2012-10-24 00:20
zhoutk
阅读(262)
评论(0)
推荐(0)
浙公网安备 33010602011771号