摘要:
int main (int argc, char* argv[]){vectornumbers; cout numbers.begin ();)cout << *--it << " "; cout<< endl; return0;} 阅读全文
posted @ 2014-07-18 21:07
wu_overflow
阅读(497)
评论(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
阅读(119)
评论(0)
推荐(0)
摘要:
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
阅读(237)
评论(0)
推荐(0)
摘要:
int main (int argc, char* argv[]){std::ios::sync_with_stdio (false); vector fuck{ "fuck", "fuck", "fuck", "fuck", "fuck", "fuck","fuck", "fuck", "f... 阅读全文
posted @ 2014-07-18 21:07
wu_overflow
阅读(132)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Csharp{ classProgram {static ... 阅读全文
posted @ 2014-07-18 21:07
wu_overflow
阅读(224)
评论(0)
推荐(0)
摘要:
引用地址: http://blog.csdn.net/caroline_wendy题目: 写一个函数,求两个整数之和, 要求在函数体内不得使用+, -, *, /四则运算符号.不能使用运算符号,使用位运算,第一步异或运算选位,第二步与运算进位.代码:[cpp] view plaincopy#incl... 阅读全文
posted @ 2014-07-18 21:07
wu_overflow
阅读(111)
评论(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
阅读(367)
评论(0)
推荐(0)
摘要:
#include "iostream"#include "string"#include "cctype"#include "vector"using namespace std;int main(){ vectorstr; stringt;//结束输入需要Ctrl+Z while (cin>... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(1011)
评论(0)
推荐(0)
摘要:
#include"iostream"using namespace std;//返回c第一次出现的位置//引用形参负责统计c出现的次数string::size_type foo(const string &s, char c,string::size_type &occurs){ auto r... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(166)
评论(0)
推荐(0)
摘要:
#include"iostream"#include"stdexcept"using namespace std;int main(){ int num,num2; while (cin>> num >> num2) {try {if (num2 == 0)throw runtime_erro... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(199)
评论(0)
推荐(0)
浙公网安备 33010602011771号