06 2013 档案

摘要:#include <iostream>#include <stdlib.h>#include <time.h>#include <math.h>using namespace std;#define ARYSIZE 10 //数组大小#define MIN -30#define MAX 30void main(){ int ary[ARYSIZE]; srand((unsigned)time(NULL));//产生随机种子 for(int i=0;i<ARYSIZE;i++) { ary[i]=MIN+rand()%(MAX+abs(MIN 阅读全文
posted @ 2013-06-20 16:39 chasu 阅读(259) 评论(0) 推荐(0)
摘要:http://geniuszhe.blog.163.com/blog/static/119346820111056459858/ 阅读全文
posted @ 2013-06-13 16:41 chasu 阅读(128) 评论(0) 推荐(0)
摘要:void PrintBracketsPairRecs(char *pBegin, char *pCur, int nCurLeft){ if (nCurLeft == 1) { *pCur = '('; *(pCur+1) = ')'; printf("%s\n", pBegin); // exit of recursive function } else { // 1st way: ()********* *pCur = '('; *(pCur+1) = ... 阅读全文
posted @ 2013-06-03 00:25 chasu 阅读(368) 评论(0) 推荐(0)
摘要:http://www.verydemo.com/demo_c180_i26774.htmlhttp://www.verydemo.com/demo_c128_i7105.htmlhttp://blog.csdn.net/wuzhekai1985http://www.cnblogs.com/E-star/archive/2013/03/30/2990157.html 阅读全文
posted @ 2013-06-03 00:01 chasu 阅读(135) 评论(0) 推荐(0)