随笔分类 -  stl容器

摘要:DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN(1 ≤N≤ 20,000) pl... 阅读全文
posted @ 2014-08-03 13:26 冷夏的博客园 阅读(175) 评论(0) 推荐(0)
摘要:库是一系列程序组件的集合,他们可以在不同的程序中重复使用。C++语言按照传统的习惯,提供了由各种各样的函数组成的库,用于完成诸如输入/输出、数学计算等功能。1. STL介绍标准模板库STL是当今每个从事C++编程的人需要掌握的技术,所有很有必要总结下本文将介绍STL并探讨它的三个主要概念:容器、迭代... 阅读全文
posted @ 2014-08-01 11:27 冷夏的博客园 阅读(252) 评论(0) 推荐(0)
摘要:代码/*#include #include using namespace std;int main(){queueq;int b,i;for(i=0;i>b;q.push(b);}cout#include using namespace std;int main(){priority_queue ... 阅读全文
posted @ 2014-08-01 10:37 冷夏的博客园 阅读(305) 评论(0) 推荐(0)
摘要:DescriptionMessage queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to t... 阅读全文
posted @ 2014-08-01 09:41 冷夏的博客园 阅读(217) 评论(0) 推荐(0)
摘要:#include #include #include using namespace std;int i;int main(){multimap m;multimap ::iterator kan,kan1,it; m.insert(pair('a', 1)); m.insert(pair('a',... 阅读全文
posted @ 2014-07-24 19:42 冷夏的博客园 阅读(536) 评论(0) 推荐(0)
摘要:#include #include #include using namespace std;int main(){mapm; map::iterator kan1;map::iterator kan;int a;m[1]=3;m[3]=45415145;m[6]=2;m[8]=415;//whil... 阅读全文
posted @ 2014-07-22 16:36 冷夏的博客园 阅读(702) 评论(0) 推荐(0)
摘要:SubmitStatusDescriptionHardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the wint... 阅读全文
posted @ 2014-07-22 14:07 冷夏的博客园 阅读(206) 评论(0) 推荐(0)