摘要: // liner_time_max_subarray.cpp#include #include int my_sum(int const * p, int const n, int & begin, int & end){ int max; int sum; int max_all... 阅读全文
posted @ 2015-02-03 20:59 孙永杰 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 寻找最大子数组// find_max_sub_array.h #include int Find_MAX_CROSSING_SUBARRAY(int* A, int low, int mid, int high, int& max_left, int& max_right, in... 阅读全文
posted @ 2015-02-03 20:53 孙永杰 阅读(190) 评论(0) 推荐(0) 编辑
摘要: // 2.3.1 merge.h #include // MERGE(A, p, q, r) // n1 = q - p + 1 // n2 = r - q // let L[1..n1 + 1] and R[1..n2 + 1] be new arrays // for i = 1 to n1 // L[i] = A[p + i - 1] // for j = 1 to n2 // ... 阅读全文
posted @ 2015-02-03 20:48 孙永杰 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 插入排序// insertion_sort.h not with template #include #include // INSERTION-SORT(A) // for j = 2 to A.length // key = A[j] // ... 阅读全文
posted @ 2015-02-03 20:32 孙永杰 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 自动生成了,src和Debug文件夹将已经存在的代码目录源文件拷到src下,eclipse会自动分析并加入工程,将原来的该注释的函数注释掉,开始的时候我们新建工程时,选的是新的helloworld工程模版includelink g++ -rdynamic -lpthread -lc -lnsl -l... 阅读全文
posted @ 2015-02-03 11:56 孙永杰 阅读(323) 评论(0) 推荐(0) 编辑
摘要: when install centos eclipse when install the os system, the cdt is already installed, but some time when you first start the eclipse, you can not find 阅读全文
posted @ 2015-02-03 09:28 孙永杰 阅读(120) 评论(0) 推荐(0) 编辑
摘要: orilink:http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310489d2d0e54f73c6bca814623928448e53919161b71e3cd73794e53c4c50a3152e91a4bea8677366b14... 阅读全文
posted @ 2015-02-03 08:59 孙永杰 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 知行网www.zhixing123.cn 编辑:麦田守望者git命令的安装与github简单使用时间:2013-09-25 01:51来源:知行网www.zhixing123.cn 编辑:麦田守望者git的出现让传统的svn陷入尴尬的境地,分布式的版本控制是局势所需,svn目前也称要支持分布式,但至... 阅读全文
posted @ 2015-02-03 06:43 孙永杰 阅读(294) 评论(0) 推荐(0) 编辑
摘要: zhoulf 2013-02-02 原创ori page:http://www.cnblogs.com/zhoulf/archive/2013/02/02/2889949.html安装说明系统环境:CentOS-6.3 安装方式:yum install (源码安装容易产生版本兼容的问题)安装软件:系... 阅读全文
posted @ 2015-02-02 22:14 孙永杰 阅读(107) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/rubylouvre/archive/2013/01/24/2874694.html 阅读全文
posted @ 2015-02-01 12:59 孙永杰 阅读(127) 评论(0) 推荐(0) 编辑