摘要:
听说过一个关于水池和泥潭的理论,说是一个孩子扔出了一枚石子,如果丢进了水池,水池会用涟漪来积极地回应而如果扔进了泥潭,泥潭则不为所动,丝毫不去理会。什么意思呢?你或是别人可能就是那个孩子,你说出的话,或是表达出的暗示就是那枚石子,别人,或者就是你,就可能是那水池或是泥潭,你是会积极地回应呢,还... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(144)
评论(0)
推荐(0)
摘要:
#include"iostream"#define ARR_SIZE(a)(sizeof((a)) / sizeof((a[0])))int a[] = {1, 23, 32, 0, 2, 5, 23};void insert_sort(int *a, int n) { int i, j,te... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(212)
评论(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)
摘要:
#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 "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)
摘要:
int array[10];int (*func(int i))[10];using arrInt = int[10];arrInt *func2(int i);typedef int arrayInt[10];arrayInt *func3(int i);auto func4 (int i)... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(190)
评论(0)
推荐(0)
摘要:
#include"iostream"int main(int argc, char **argv) { std::stringstr; for (size_ti = 0; argv[i]; ++i)str += argv[i]; std::cout<< str << std::endl; re... 阅读全文
posted @ 2014-07-18 21:06
wu_overflow
阅读(109)
评论(0)
推荐(0)
浙公网安备 33010602011771号