23 #ifndef CIRCULAR_QUEUE_H_ 24 #define CIRCULAR_QUEUE_H_ 55 memcpy(
data_, c.
data_,
sizeof(Type)*c.length());
68 memcpy(
data_, c.
data_,
sizeof(Type)*c.length());
104 std::cout<<
"cqueue is full."<<std::endl;
114 std::cout<<
"cqueue is empty."<<std::endl;
134 while(cnt <=
tail_-1) {
135 std::cout <<
data_[cnt] <<
" ";
138 std::cout<<std::endl;
cqueue & operator=(const cqueue &c)