- 博客(7)
- 资源 (10)
- 收藏
- 关注
原创 开始学习Linux
<br />读书时候linux的培训就很火。<br />下了个文档,决定好好学,得空装个试试。<br />工作快两年了,一直想做开发。<br />一年前,以为考了软设就能跳了。<br />面疲之后没走成,稀里糊涂地做了半年技术支持,熬了不少夜班。<br />看着兄弟们都走了,一个星期的观察期也能让我辞职,欣然前往。<br />这次是web开发,一方面对于游戏的不热衷,一方面搬家的杂事。<br />如果我能够积极多点,把学习任务漂亮地完成,不问那些傻问题,也就不会延长观察期。<br />如果我能轻松点,好好琢
2010-06-09 18:40:00 310
原创 堆排序
<br />// array是待调整的堆数组,i是待调整的数组元素的位置,length是数组的长度 <br /> void HeapAdjust(int array[], int i, int nLength) <br /> { <br /> int nChild, nTemp; <br /> for (nTemp = array[i]; 2 * i + 1 < nLength; i = nChild) <br />
2010-06-07 15:11:00 247
原创 内存拷贝函数
<br />void* memcpy( void *dst, const void *src, unsigned int len )<br />{<br /> register char *d;<br /> register char *s;<br /> if (len == 0)<br /> return dst;<br /> if ( dst > src ) //考虑覆盖情况<br /> {<br /> d = (char *)dst + l
2010-06-07 11:13:00 319
原创 Josephu问题的链表解决方案
<br />typedef struct Node<br />{<br /> int index;<br /> struct Node *next;<br />}JosephuNode;<br /><br />int Josephu(int n, int m)<br />{<br /> int i, j;<br /> JosephuNode *head, *tail;<br /> head = tail = (JosephuNode *)malloc(sizeof(JosephuNode));<b
2010-06-07 10:17:00 572
原创 删除相同值节点
<br />双向循环链表结点定义为:<br />struct node<br />{ int data;<br />struct node *front,*next;<br />};<br /><br /><br />两个双向循环链表A,B,头指针为:pHeadA,pHeadB,函数将两链表中data值相同的结点删除:<br />BOOL DeteleNode(Node *pHead, DataType Value)<br />{<br /> if (pHeader == NULL) return f
2010-06-07 09:47:00 469
原创 set求交集
<br />// test.cpp : Defines the entry point for the console application.<br />//<br />#include "stdafx.h"<br />#include "iostream"<br />#include "algorithm"<br />#include "set"<br />using namespace std;<br /> <br />int _tmain(int argc, _TCHAR* argv[])<br /
2010-06-03 16:49:00 1240
原创 螺旋矩阵
<br />// test.cpp : Defines the entry point for the console application.<br />//<br />#include "stdafx.h"<br />#include "iostream"<br />using namespace std;<br /> <br />int _tmain(int argc, _TCHAR* argv[])<br />{<br /> const int N=10; <br /> int met
2010-06-02 13:36:00 323
A Simple Chatting Program using C++
2009-10-21
Make Two Timers using MFC
2009-09-13
WF Practice
2009-05-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人