摘要:
#include <iostream>using namespace std;#define Maxsize 10template <typename T>class queue{ private: int front,rear; T elem[Maxsize]; public: bool init(); bool QueueEmpty(); bool EnQueue(T e); T GetFront(); T DeQueue();};template <typename T>bool queue<T>::init(){ front = rear 阅读全文