-
华为机试题之统计单词个数实例代码
所属栏目:[经验] 日期:2021-01-01 热度:54
输入n个单词,统计各个单词出现的个数 #include iostream #include map #include string using namespace std; int main() { mapstring,int k; string word; while(cinword) ++k[word]; for(mapstring,int::iterator i=k.begin();i!=k.end();i++) cout(*i)[详细]
-
快速解决boost库链接出错的问题(分享)
所属栏目:[经验] 日期:2021-01-01 热度:169
安装完最新的Boost库 官方说明中有一句话: Finally, $ ./b2 install will leave Boost binaries in the lib/ subdirectory of your installation prefix. You will also find a copy of the Boost headers in the include/ subdirectory of the installat[详细]
推荐文章
站长推荐