摘要:
C++ has a second means of implementing the has-a relationship: private inheritance.With private inheritance, public and protected members of the base 阅读全文
摘要:
#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... 阅读全文
摘要:
原本,你是你,我是我。 后来,你是我,我是你。 再后来,我是我,你是你。 阅读全文
摘要:
问题: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 阅读全文
摘要:
void OnceSort(int *a, int size); void MergeSort(int *a, int size) { if (size = len1 || (j R[j] )) { a[k] = R[j]; j++; } else { ... 阅读全文
摘要:
#ifndef _BYTEBUFFER_H #define _BYTEBUFFER_H #include typedef unsigned char uint8; /* Unsigned 8 bit quantity */ typedef signed char int8; /* Signed 8 bit quantity ... 阅读全文
摘要:
//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 阅读全文
摘要:
function partion(arr, left, right) local tmp = arr[left] while left = tmp do right = right - 1 end ... 阅读全文
摘要:
1,下载源代码 http://www.lua.org/download.html 直接下载source2,vs2010新建win32项目 应用程序设置中设成静态库3,将.c(除去lua.c)和.h文件加入到工程4,lua源代码文件中的lauxlib.h、lua.h、luaconf.h、lualib.... 阅读全文