2017年6月5日
摘要:
C++ has a second means of implementing the has-a relationship: private inheritance.With private inheritance, public and protected members of the base
阅读全文
posted @ 2017-06-05 00:01
听风的日子
阅读(335)
推荐(0)
2017年5月6日
摘要:
#include void swap(int *x, int *y) { int tmp = *x; *x = *y; *y = tmp; } // 将index为根的树调整成对大堆 void HeapAdjust(int *array, int index, int length) { int nChild; int lChild; int...
阅读全文
posted @ 2017-05-06 23:45
听风的日子
阅读(146)
推荐(0)
2016年11月17日
摘要:
原本,你是你,我是我。 后来,你是我,我是你。 再后来,我是我,你是你。
阅读全文
posted @ 2016-11-17 11:48
听风的日子
阅读(115)
推荐(0)
2016年11月11日
摘要:
问题:Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64解决:1、将/etc/yum.repo.d/CentOS-Debuginfo.repo中的enable改为12、安装 yum-utils
阅读全文
posted @ 2016-11-11 14:49
听风的日子
阅读(321)
推荐(0)
2016年11月5日
摘要:
void OnceSort(int *a, int size); void MergeSort(int *a, int size) { if (size = len1 || (j R[j] )) { a[k] = R[j]; j++; } else { ...
阅读全文
posted @ 2016-11-05 23:58
听风的日子
阅读(173)
推荐(0)
2016年10月24日
摘要:
#ifndef _BYTEBUFFER_H #define _BYTEBUFFER_H #include typedef unsigned char uint8; /* Unsigned 8 bit quantity */ typedef signed char int8; /* Signed 8 bit quantity ...
阅读全文
posted @ 2016-10-24 14:55
听风的日子
阅读(313)
推荐(0)
2016年10月15日
摘要:
//avl.h#ifndef __AVL_H__#define __AVL_H__ typedef int KEY_TYPE; /* struct */typedef struct AVL{ KEY_TYPE key; int height; struct AVL* lchild; struct A
阅读全文
posted @ 2016-10-15 16:07
听风的日子
阅读(185)
推荐(0)
2015年6月30日
摘要:
function partion(arr, left, right) local tmp = arr[left] while left = tmp do right = right - 1 end ...
阅读全文
posted @ 2015-06-30 21:38
听风的日子
阅读(947)
推荐(0)
2015年5月13日
摘要:
1,下载源代码 http://www.lua.org/download.html 直接下载source2,vs2010新建win32项目 应用程序设置中设成静态库3,将.c(除去lua.c)和.h文件加入到工程4,lua源代码文件中的lauxlib.h、lua.h、luaconf.h、lualib....
阅读全文
posted @ 2015-05-13 23:16
听风的日子
阅读(337)
推荐(0)
2015年5月11日
摘要:
bit = {data32={}}for i = 1, 32 do bit.data32[i] = 2^(32-i)endfunction bit:d2b( arg ) local num = tonumber( arg ) local tr = {} if num ...
阅读全文
posted @ 2015-05-11 21:46
听风的日子
阅读(1199)
推荐(0)