自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

二十三小时

Coding is not the whole story

  • 博客(6)
  • 资源 (22)
  • 收藏
  • 关注

原创 【C++】计算struct结构体占用的长度

关于结构体和类所占用的长度计算方式介绍。struct A{ char a[5]; int b; short int c;}structA;在上例中,要计算 sizeof(a) 是多少?有两个原则:1)各成员变量存放的起始地址相对于结构的起始地址的偏移量必须为该变量的类型所占用的字节数的倍数即当 A中的a占用了5个字节后,b需要占用四个字节,此

2014-03-29 02:21:41 6322

原创 关于构造函数 c++

class F { public: F() {} F(int) {} void f() {}};void test() { F f1; F f2(); f1.f(); //可以正常执行 f2.f(); //会报错,因为编译认为F f2();是定义了一个返回值为F类型的函数,f2并不是F的对象,也无f

2014-03-28 23:41:56 891

原创 运行 XV6 记录

XV6项目是MIT学校的。主要用于操作系统教学。XV6源码:git clone git://pdos.csail.mit.edu/xv6/xv6.git接着就是 make 了。再最后就是运行。试了 bochs,qemu,kvm。最后是kvm成功了。安装kvm 就只用用 apt-get 就行了。运行:kvm -smp 1 -parallel std

2014-03-09 22:40:43 2571

原创 C++函数的重载

重载 overloaded : 同一作用域内,几个函数名字相同,但形参列表不同。(main 函数不能重载)eg.void print (const char *cp);void print (const int *beg, const int *end);void print (cosnt int ia[], size_t, size);下面的不是重载://仅仅是参

2014-03-04 11:53:53 954

原创 C++中的指针和引用,结合数组

聊以此文记录c++ primer的学习过程int a = 3;const int *b = &a; //可以这样,将非常量的地址赋给b //此时,b认为自己指向的是常量, //所以不能通过b去修改a的值const int &ar = a; // ar引用a,不能通过ar去修改a的值/*******************************/const int

2014-03-03 18:59:10 1115

转载 ubuntu运行xv6

此文用以记录过程xv6 可以在http://pdos.csail.mit.edu/6.828/2011/xv6.html 使用git clone下来,相当方便。而运行xv6的bochs,源代码包bochs-2.4.6.tar.gz可以从http://sourceforge.net/projects/bochs/下载注意:不能使用ubuntu上的a

2014-03-03 01:35:42 2301

hadoop 2.2.0 for eclipse plugin插件

hadoop 2.2.0 for eclipse plugin插件 可以直接使用 放入windows下Eclipse的plugin文件夹中即可

2014-11-02

hadoop eclipse plugin 源代码

hadoop eclipse plugin 源代码 需要自己编译

2014-11-02

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms_2nd Edition_Robert Sedgewick_2013 (2).pdf ) 算法分析

2014-09-01

Elements of Programming

Elements of Programming Addison-Wesley.

2014-09-01

Combinatorial Algorithms Second Edition

Combinatorial Algorithms Second Edition

2014-09-01

Analytic Combinatorics [Philippe Flajolet / Robert Sedgewick ]

Analytic Combinatorics [Philippe Flajolet / Robert Sedgewick ] Analytic combinatorics aims to enable precise quantitative predictions of the properties of large combinatorial structures. The theory has emerged over recent decades as essential both for the analysis of algorithms and for the study of scientific models in many disciplines, including probability theory, statistical physics, computational biology, and information theory. With a...

2014-09-01

算法艺术与信息学竞赛

算法艺术与信息学竞赛

2013-05-10

The art of unix programming, UNIX编程艺术

The art of unix programming UNIX编程艺术 英文版

2013-05-10

python api pdf

english version of python api document from original websites

2012-11-14

算法导论 第三版 英文版

算法导论 第三版 英文版

2012-09-24

操作系统习题集(第五版).pdf

操作系统习题集(第五版).pdf

2011-02-23

算法导论的课后习题答案

算法导论原书的习题答案,非常详细。是提高编程水平的必备书。

2010-05-22

算法导论IntroductionToAlgorithm

算法导论IntroductionToAlgorithm,原书电子版。各种编程的算法基础,必备版

2010-05-22

Java编程思想第四版(中文版)

这个是很有名的一本书。Java学习的必备书

2010-05-22

causes of love

this is about what causes the love (in English)

2010-05-22

数据结构c++ 专业版数据结构c++

专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版专业版

2009-09-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除