- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 单例模式的释放
class CSingleton { public: static CSingleton * GetInstance() { if (m_pInstance == NULL) m_pInstance = new CSingleton(); return m_pInstance; } private: CSingleton(){}; static CSi
2013-12-19 16:00:19
420
转载 双向链表的实现
// DoubleList.cpp : 定义控制台应用程序的入口点。 //双向链表 #include "stdafx.h" #include using namespace std; template struct Node { Type data; Node* prior; //指向前驱结点 N
2013-12-19 15:37:32
391
转载 单链表的实现(不带头结点)
// LinkList.cpp : 定义控制台应用程序的入口点。 //定义的链表不含头结点 #include "stdafx.h" #include using namespace std; template //定义结点 struct Node { Type data; Node *next; }
2013-12-19 15:34:41
545
转载 单链表的实现(带头结点)
// LinkList.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include using namespace std; template struct Node { T data; //结点的数据域 Node* next; //结点的指针域,指向下一个结点
2013-12-19 15:32:12
472
转载 冒泡排序
void bubble_sort(int x[],int n) { int i,j,temp; for(i = 1; i { for(j=0;j { if(x[j] > x[j+1]) { temp = x[j]; x[j] = x[j+1]; x[j+1] = temp; } } } }
2013-12-19 15:15:14
354
转载 循环列表
// CycleList.cpp : 定义控制台应用程序的入口点。 //循环链表 #include "stdafx.h" #include using namespace std; template struct Node { Type data; Node *next; }; templa
2013-12-19 15:11:28
392
c++日志封装类,生产消费模式,支持二进制写日志操作
2022-10-23
VS2008调试libevent1.2.8
2018-12-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人