#include #include #include #include using namespace std; deque dq; int main() { dq.push_front(102);///插入头部 dq.push_back(101);///插入尾部 sort(dq.begin(),d... ...
分类:
其他好文 时间:
2017-05-15 16:28:25
阅读次数:
156
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 void transform(ifstream &mf, ifstream &wf); 9 10 int main() 11 { 12 ... ...
分类:
其他好文 时间:
2017-05-14 19:45:04
阅读次数:
307
队列概念 队列(Queue)是限定只能在一端插入、另一端删除的线性表。允许删除的一端叫做队头(front),允许插入的一端叫做队尾(rear),没有元素的队列称为“空队列”。 队列具有先进先出(FIFO)的特性。 普通顺序队列存在的问题 在普通顺序队列中,入队的操作就是先将尾指针rear右移一个单位 ...
分类:
编程语言 时间:
2017-05-14 18:04:18
阅读次数:
255
Simple Classification of English Vowels and Consonants 1.Classifation of English Vowels a)Monophtongs 1)Front Vowels 2)Back Vowels 3)Central Vowels b) ...
分类:
Web程序 时间:
2017-05-13 11:24:41
阅读次数:
278
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
分类:
其他好文 时间:
2017-05-12 22:26:47
阅读次数:
233
———————————————————————————————————————————— 基本概念: 和栈相反,队列是一种先进先出(FIFO)的线性表。只允许在一端插入,在另一端删除。 允许插入的叫"队尾"(rear),允许删除的叫"队头"(front)。 使用场景:操作系统的作业排队。在允许多道程 ...
分类:
编程语言 时间:
2017-05-11 16:55:47
阅读次数:
374
提供两种spfa算法模板 1.链表储存: 2.数组储存 ...
分类:
编程语言 时间:
2017-05-09 20:35:28
阅读次数:
206
1、 queue<pair<int,int> >p; 当我想把这样一个元素取出时,赋值给什么类型的变量呢。 typedef pair<int,int> pii; 在主函数前写个这个.... pii 的位置你随便写什么都行 可以不是pii pii x=q2.front(); 然后定义一个pii类型的x ...
分类:
其他好文 时间:
2017-05-08 23:12:49
阅读次数:
142