随笔分类 -  STL

摘要:题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2094图论 拓扑排序 不过难点是输入的是字符 用STL mapView Code 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<map> 5 using namespace std; 6 map<string,int>p; 7 int o[2001][2001],key[2001]; 8 char str1[100],str2[100]; 9 in 阅读全文
posted @ 2012-08-03 20:52 时光旅行的懒猫 阅读(202) 评论(0) 推荐(0)
摘要:该篇分为十一部分,分别是:vector类的主要成员、deque类的主要成员、list类的主要成员、stack类的主要成员、queue类的主要成员、priority_queue类的组要成员、set类的主要成员、multiset类的主要成员、map类的主要成员、multimap类的主要成员、STL算法函数(一)vector类的主要成员vector<T>是可边长的向量,比较灵活☆ value_type;//对象类型T,存储在vector中 [定义地方:容器]☆ pointer;//指向T的指针 [容器]☆ reference;//T的引用 [容器]☆ const_reference;// 阅读全文
posted @ 2012-07-27 15:42 时光旅行的懒猫 阅读(185) 评论(0) 推荐(0)