http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-11-24 08:19:43
插入迭代器与向前插入迭代器 using namespace std; int main(){ list<int> list1,list2,list3; for(list<int>::size_type i=0; i < 10; i++) list1.push_back(i); .........【阅读全文】
发布时间:2011-11-24 07:52:01
#include <vector>#include <iostream>#include <algorithm>using namespace std;bool shorted(const string &s1,const string &s2){ return s1.size()<= s2.size(); } bool gt6(const string &s){ return s.size()>= 6; } int main(){ &.........【阅读全文】
发布时间:2011-11-22 14:24:05
#include <iostream>#include <vector>#include <map>#include <stdexcept>#include <fstream>#include <sstream>using namespace std;void make_map(ifstream &in,map<string,string> &dict){ string key,word; while(in>>key>>word,!in.eof()) { &.........【阅读全文】