2018年9月23日

摘要: 1. 插入节点 在指定节点后面插入新的节点。这个函数首先检查参数的有效性。然后分两种情况处理插入: 1> 如果要插入的链表为空,新节点是链表的第一个节点,新初化新节点以后,直接让firstPtr与lastPtr指向这个节点。 2>如果链表中已有其它节点,就改变前后节点的指针,将新节点插入。 2. 查 阅读全文
posted @ 2018-09-23 22:38 findmehere 阅读(218) 评论(0) 推荐(0) 编辑

2018年8月30日

摘要: [原理分析] 在用IDA反汇编C++程序的时候,经常会看到这样的语句:“call eh vector constructor iterator”或“eh vector destructor iterator”。通常大家的第一反应是:这是在调用某个std::vector<T>对象的构造函数或析构函数。 阅读全文
posted @ 2018-08-30 22:08 findmehere 阅读(295) 评论(0) 推荐(0) 编辑

2014年12月24日

摘要: 04-1. Root of AVL Tree (25)An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diffe... 阅读全文
posted @ 2014-12-24 21:31 findmehere 阅读(674) 评论(1) 推荐(1) 编辑

2014年12月22日

摘要: 03-3. Tree Traversals Again (25)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that whe... 阅读全文
posted @ 2014-12-22 17:23 findmehere 阅读(867) 评论(0) 推荐(0) 编辑

2014年12月10日

摘要: 01-1. 最大子列和问题(20)给定K个整数组成的序列{ N1, N2, ..., NK },“连续子列”被定义为{ Ni, Ni+1, ..., Nj },其中 1 #include int MaxSubseqSum(const int data[],int datalen); ... 阅读全文
posted @ 2014-12-10 23:21 findmehere 阅读(776) 评论(0) 推荐(0) 编辑

2014年3月6日

摘要: 1.创建链表/*- *----------------------------------------------------------------------- * Lst_Init -- * 创建并初始化一个链表 * * 输入: * circ 如果是循环链表则为TRUE * * 结果: * 创建好的链表(空链表). * * 副作用: * 链表已经创建,还需要做啥? * *----------------------------------------------------------------------- */LstLst_Init(Boo... 阅读全文
posted @ 2014-03-06 20:17 findmehere 阅读(665) 评论(0) 推荐(0) 编辑

2014年1月22日

摘要: 一、链表结构typedef struct ListNode { struct ListNode *prevPtr; /* 链表中前一节点 */ struct ListNode *nextPtr; /* 链表中后一节点*/ unsigned int useCount:8, /* 使用这一节点的函数数目。只有数目为0,节点才可以被删除*/ flags:8; /* 节点状态标志 */ void *datum; /* 节点存放的数据 */} *ListNode;typedef s... 阅读全文
posted @ 2014-01-22 20:33 findmehere 阅读(724) 评论(0) 推荐(0) 编辑

2013年7月11日

摘要: void *__thiscall sub_DB1A40(szFunctionName){ if (szFunctionName!=NULL&& strlen(szFunctionName)>0 ) {if ( *this.UseFlag>1){(*this.UseFlag)--; pStringMem = AllocateMemoryAndSetHeader(nstrlen); strcpy(pStringMem, szFunctionName, nstrlen); this = pStringMem; return this; }else{if(nstrlen 0 阅读全文
posted @ 2013-07-11 22:48 findmehere 阅读(260) 评论(0) 推荐(0) 编辑

2013年5月30日

摘要: // 替换文件名中的/ 去掉文件名开头的.\ 处理文件名中的空格 int ProcessPackName(char * PackName) //sub_DCD400{ unsigned int StringLen; StringLen = strlen(PackName); for (int i = 0; i 2 && PackName[0] == '.' && PackName[1] == '\\' ) { StringLen=StringLen-2; if ( StringLen> 0 ) { memcpy(PackNa 阅读全文
posted @ 2013-05-30 23:07 findmehere 阅读(480) 评论(0) 推荐(0) 编辑

2012年12月7日

摘要: 最近接触到Markdown,感觉特别适合用来作笔记、写写博客之类的事情。简洁、快速、而又不乏美观。但是很多博客都不支持Markdown,并且我更喜欢使用编辑器ReText,可以预览效果。我觉得导出html文件之后,完全可以用python发到博客网站上。 在google上搜索了一下,居然有现成的脚本文件可以使用:pblog。脚本虽然简单,但已经够用。脚本在本地,利用emacs与asciidoc把o... 阅读全文
posted @ 2012-12-07 14:20 findmehere 阅读(968) 评论(0) 推荐(0) 编辑

导航