爱嘉牛LA

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年12月3日

摘要: View Code #ifndef QUEUE_H#define QUEUE_H#include <cassert>//类模版的定义template<class T,int SIZE=50> //size是队列能容纳的个数class Queue{private: int front,rear,count; //队头指针,队尾指针,元素个数 T list[SIZE]; //队列的元素数组public: Queue(); //构造函数,初始化队头... 阅读全文
posted @ 2012-12-03 14:24 爱嘉牛LA 阅读(199) 评论(0) 推荐(0) 编辑