33,321
社区成员




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) // 问题在这里!!!!
{
…………………………………………
}