摘要:
#include<iostream>#include<vector>#include<queue>using namespace std;int main(){ priority_queue<int> pq;//最大值优先队列 priority_queue<int,deque<int>,greate 阅读全文
posted @ 2016-03-15 21:59
请叫我凯凯大人
阅读(8423)
评论(0)
推荐(0)
摘要:
介绍 这篇文章的目的是为了介绍std::vector,如何恰当地使用它们的成员函数等操作。本文中还讨论了条件函数和函数指针在迭代算法中使用,如在remove_if()和for_each()中的使用。通过阅读这篇文章读者应该能够有效地使用vector容器,而且应该不会再去使用C类型的动态数组了。 Ve 阅读全文
posted @ 2016-03-15 21:32
请叫我凯凯大人
阅读(812)
评论(0)
推荐(0)

浙公网安备 33010602011771号