摘要:
//queue STL //queue is just a container adaptor, which is a class that use other container. //just like stack q1.push(x) //push x into the queue q1.pop() //pop the first element in the que... 阅读全文
摘要:
1. Definiation What is a queue? A queue is a list. With a queue, inseration is done at one end (known as rear) whereas deletion is performed at the ot 阅读全文
摘要:
//Stack STL //在STL中,栈是以别的容器作为底部结构,再将 //接口改变,使之符合栈的特性 //一共5个常用操作函数 //构造析构 stackc; //build a empty stack stackc1(c2); //copy a stack //5 functions c.top(); //return the element at the top... 阅读全文