摘要:
11.20 使用insert代替下标操作。#include#include#include#includeusing namespace std;int main(){ map word_count; string word; while(cin>>word) { ... 阅读全文
摘要:
11.12 编写程序,读入string和int的序列,将每个string和int存入一个pair中,pair保存在一个vector中。#include#include#include#includeusing namespace std;int main(){ vector> vec; ... 阅读全文
摘要:
11.4 编写单词计数程序,忽略大小写和标点。例如,“example.”,“example,"和”Example“应该递增相同的计算器。#include#include#include#includeusing namespace std;int main(){ map word_count;... 阅读全文