Chinaunix首页 | 论坛 | 博客
  • 博客访问: 414861
  • 博文数量: 60
  • 博客积分: 442
  • 博客等级: 下士
  • 技术积分: 910
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-27 14:53
文章分类

全部博文(60)

文章存档

2021年(1)

2018年(1)

2017年(14)

2016年(31)

2015年(1)

2013年(3)

2012年(9)

我的朋友

发布时间:2018-01-16 17:01:15

#include <stdio.h>#include <unistd.h>#include <inttypes.h>#include <stdint.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#define page_map_file "/proc/self/pagemap"#defi.........【阅读全文】

阅读(2852) | 评论(0) | 转发(0)

发布时间:2017-11-23 17:08:23

#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <sys/mman.h>#include <unistd.h>int main(int argc, char *argv[]) {    if (argc < 3) {       .........【阅读全文】

阅读(2636) | 评论(0) | 转发(0)

发布时间:2017-03-12 14:29:42

代码实现了二叉树的创建、查找、插入、删除、遍历。以下着重说删除,分3种情况:case 1:要删除的节点t即有左子树又有右子树,如图c的node 5case 2:要删除的节点即没左子树又没右子树,如图a的node 13case 3:要删除的节点有单支子树,或左或右,如图b的node 16或node 10,另外也要注册被删除节点是父亲的左还是右子.........【阅读全文】

阅读(2452) | 评论(0) | 转发(0)

发布时间:2016-06-10 12:00:29

http://blog.codinglabs.org/articles/a-malloc-tutorial.html......【阅读全文】

阅读(2131) | 评论(0) | 转发(0)

发布时间:2016-06-10 11:56:37

1. C++中,内部和外部变量重名时,如何引用外部变量?   #include    using namespace std;      int Vac = 2;   int main() {int Vac = 4;::Vac++;//看这里,用外部变量时,在变量前加"::"   }2. x=x+1, x+=1, x++, 哪个效率高?&nbs.........【阅读全文】

阅读(2126) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册