请任选一种存储方式表示队列,用C\C++语言实现队列的基本操作

日期:2011-01-06 18:20:58 人气:1

请任选一种存储方式表示队列,用C\C++语言实现队列的基本操作

悬赏都没有,找了过去自己写好的,将就用吧。 #include using namespace std; template class Queue { public: void clear(); bool enQueue(const T item); bool deQueue(T& item); bool getFront(T& item); bool isEmpty(); bool isFull(); }; template class Arra
    A+
热门评论