33,311
社区成员
发帖
与我相关
我的任务
分享
template<class T>
class Queue
{
public:
Queue(int queueCapacity = 10);
bool IsEmpty()const;
T &Front()const;
T &Rear()const;
void Push(const T& item);
void Pop();
private:
T *queue;
int front;
int rear;
int capacity;
};
template<class T>
Queue<T>::Queue(int queueCapacity):capacity(queueCapacity) // 问题在这里!!!!
{
…………………………………………
}