- 博客(8)
- 资源 (10)
- 收藏
- 关注
转载 简单链表
C++单链表基本操作(代码) #include #include #include using namespace std; // list node structure typedef struct _NODE{ int data; struct _NODE *next; }NODE, *PNODE; // create a list,
2012-03-26 16:57:43 451
转载 对象池
对象池 CTimeUtil.h #ifndef CTIMEUTIL_H #define CTIMEUTIL_H #if defined(_MSC_VER) #include #else #include #include #endif typedef enum TIME_LEV { MISEC_LEV, USEC_LEV }; class CTimeUtil {
2012-03-26 16:48:53 453
转载 对象池
对象池 /* ---------------------------------------------------------------- */ /* Copyright 2005 (c) by RWTH Aachen - Lehrstuhl fuer Informatik VI */ /* Richard Zens
2012-03-26 16:44:31 768
转载 对象池
smartpoint #ifndef __SMART_POINTER_H__ #define __SMART_POINTER_H__ template class SmartPointer { public: typedef T element_type; SmartPointer ():_object(NULL), _counter(NULL){} Sma
2012-03-26 16:38:26 435
转载 内存池
MemoryBlock.h #ifndef MEMORY_BLOCK #define MEMORY_BLOCK typedef unsigned short USHORT; ///////////////////////////////////////////////////// #include #include using namespace std; class MemoryB
2012-03-26 16:36:58 489
原创 求无需数组第K小的数及其位置
#include "stdafx.h" #include #include #include void swap(int & a, int & b); int find_position(int* a,int k, int low,int high); int find_orderk(int* a, int k, int low,int high); int MAXCOUNT = 10
2012-03-26 10:07:27 584
原创 求无序数组第K大的数值,及其所在的位置
求无序数组第K大的数值,及其所在的位置 #include "stdafx.h" #include #include #include void swap(int & a, int & b); int find_position(int* a,int k, int low,int high); int find_orderk(int* a, i
2012-03-23 15:22:55 802
原创 求无序数组第K大小的数值
#include "stdafx.h" #include #include #include void swap(int & a, int & b); int find_position(int* a,int k, int low,int high); int find_orderk(int* a, int k, int low,int high); void swap(int & a
2012-03-22 16:01:56 628
C/C++ Reference
2010-08-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人