摘要: int main (int argc, char* argv[]){std::ios::sync_with_stdio (false); ifstreamfile; file.open(argv[1]); mapword_count; string word,line; while(getline ... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(221) 评论(0) 推荐(0)
摘要: list& DeleteRepeatElements (list&lst){ lst.sort(); lst.unique(); for (conststring &each_word : lst)cout << each_word << " "; cout<< endl; returnlst... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(117) 评论(0) 推荐(0)
摘要: int main(int argc, char **argv){ int i; cout>i; autoif_equal_zero = [&]()-> bool{if (i == 0)return true;elsewhile (i > 0)--i;return false; }; cout ... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(158) 评论(0) 推荐(0)
摘要: #include >#include >#include >#include >using namespace std;string make_plural(size_t ctr, const string &word, const string&ending){ return (ct... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(168) 评论(0) 推荐(0)
摘要: include include include int main(int argc, char **argv){int a = 0, b = 0, c = 0;string str;getline(cin, str);for(auto it = str.begin(); it != str.e... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(291) 评论(0) 推荐(0)
摘要: class circle{int a; // 普通变量,不能在类中初始化static int b; // 静态变量,不能在类中初始化static const int c=2; // 静态常量,可以在类中初始化static const double PI=3.1416;//error C2864... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(301) 评论(0) 推荐(0)
摘要: 原文地址:博客中尖括号不显示的问题作者:木子超-同学 今天突然发现以前博文中粘贴的代码都有了问题,C++代码中头文件“#include……”后面的的部分都不见了,单单显示为“#include”,颇感纠结,百度了一下才发现原来是HTML和XML转义字符的问题。大概意思就是说尖括号为HTML和XM... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(317) 评论(0) 推荐(0)
摘要: int main (int argc, char* argv[]){std::ios::sync_with_stdio (false);//将范围从v.begin()到v.end()的元素copy到c的end()处 copy(v.begin (), v.end (), inserter (c, c.... 阅读全文
posted @ 2014-07-18 21:07 wu_overflow 阅读(362) 评论(0) 推荐(0)
摘要: 铅(なまり)の空(そら)【阴霾的天空】重(おも)く垂(た)れ込(こ)み【垂下凝重的幕帘】真白(ましろ)に淀(よど)んだ【沉入苍白之中】太阳(たいよう)が砕(くだ)けて【将太阳斩碎】耳鸣(みみな)りを尖(とが)らせる【让我大声尖叫】ひゅるりひゅるり【迅速地 迅速地】低(ひく)いツバメ(つばめ)が... 阅读全文
posted @ 2014-07-18 21:06 wu_overflow 阅读(113) 评论(0) 推荐(0)
摘要: 吹きすさぶ风の中で(猛烈吹拂的风中)崖っぷちを仆等は駆ける(我们急奔在悬崖边)决して后ろを振り向かない(绝对不能回头)一言も言叶は喋らず(一句话也没说)いつの日も忏悔する事もなく(什么时候也没有让我们后悔的事)空を见上げりゃ激しい雨が降りかかる(仰望向天空 猛然倾盆而下的暴雨)収まったかと思え... 阅读全文
posted @ 2014-07-18 21:06 wu_overflow 阅读(106) 评论(0) 推荐(0)