magic code 李亚文

 

2014年3月4日

【软件工程】用map 实现把英语文本文件词和个数打印出来

摘要: #include #include #include #include using namespace std;void main(void) { ifstream input("c:\\urce2.txt"); string str; map string_count ; while(input>>str){ ++string_count[str]; } map::iterator it=string_count.begin(); // begin函数返回指向map头部的迭代器 ... 阅读全文

posted @ 2014-03-04 21:02 magic code 李亚文 阅读(634) 评论(0) 推荐(0)

导航