用Array實作queue。
#ifndef QUEUE_H
#define QUEUE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
template<typename T>
class Queue{
public:
Queue():capacity(100){
this->head = 0;
this->tail = 0;
this->size = 0;
this->array = new T[capacity];
}
Queue(int c){
this->head = 0;
this->tail = 0;
this->size = 0;
this ...