摘要:
#include "stdafx.h"#include <windows.h>#include <process.h>template <typename T>class CircularQueue{public: explicit CircularQueue(int capacity) : m_capacity(capacity), m_head(0), m_tail(0) { m_array = new T[m_capacity + 1]; } ~CircularQueue() { delete[] m_array; ... 阅读全文