摘要: 11.20 使用insert代替下标操作。#include#include#include#includeusing namespace std;int main(){ map word_count; string word; while(cin>>word) { ... 阅读全文
posted @ 2014-08-18 22:39 Jessica程序猿 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 11.12 编写程序,读入string和int的序列,将每个string和int存入一个pair中,pair保存在一个vector中。#include#include#include#includeusing namespace std;int main(){ vector> vec; ... 阅读全文
posted @ 2014-08-18 20:59 Jessica程序猿 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 11.4 编写单词计数程序,忽略大小写和标点。例如,“example.”,“example,"和”Example“应该递增相同的计算器。#include#include#include#includeusing namespace std;int main(){ map word_count;... 阅读全文
posted @ 2014-08-18 17:09 Jessica程序猿 阅读(403) 评论(0) 推荐(0) 编辑