摘要: #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 阅读全文
posted @ 2012-10-26 13:44 SA高处不胜寒 阅读(132) 评论(0) 推荐(0) 编辑