2010年2月24日
摘要: 要不是因为王然只有23岁,相信大家也不会有这么多的质疑。但既然有了质疑,就不能太纠缠于年龄问题,应该从逻辑上,从常理上来看待这件事情。不排除她是天才的可能性,但她的表现离天才实在太远,面对公众撒谎这种事她都能做得出来。撒谎问题可大可小,谁这一辈子还能没撒过谎?关键是,作为一个天才,对公众撒谎会导致什么样的后果不可能估计不到。能力很强更是个笑话。工作能力包含业务能力和其他的一些能力,比如分析解决问题... 阅读全文
posted @ 2010-02-24 16:21 raof01 阅读(787) 评论(0) 推荐(0) 编辑
  2010年2月11日
摘要: Recursion is great to resolve many problems including reverse of a linked list. First let's check the non-recursive version of reverse.To reverse a linked list, we start from the head (in this essay w... 阅读全文
posted @ 2010-02-11 16:59 raof01 阅读(421) 评论(0) 推荐(0) 编辑
  2009年6月19日
摘要: No comments provided because it's quite simple. This function will avoid overwritten of source data when source and destination have space overlap. Can only be used on 32-bit platform.void* WordCopy(v... 阅读全文
posted @ 2009-06-19 16:57 raof01 阅读(109) 评论(0) 推荐(0) 编辑
  2009年4月23日
摘要: Sometimes people use global default new operator to allocate memory for objects. But in some cases, the default new operator is not quite fit for the project / program, because allocating memory will ... 阅读全文
posted @ 2009-04-23 16:56 raof01 阅读(161) 评论(0) 推荐(0) 编辑
  2009年1月10日
摘要: C++里提供了三种访问权限:public、protected,以及private。分别代表对所有公开,对部分公开,完全不公开。这三个关键字不但能够作为access label,也可以用于指定继承方式。在开始之前,先看看scope和C++的对象模型。在一个类的实例中,其相应的类的成员函数并不是包含在实例的内存区里。因此,每个non-static的成员函数在访问同类其他成员时会有一个隐含的参数this... 阅读全文
posted @ 2009-01-10 16:55 raof01 阅读(163) 评论(0) 推荐(0) 编辑
  2008年12月22日
摘要: IT人生 阅读全文
posted @ 2008-12-22 16:40 raof01 阅读(140) 评论(0) 推荐(0) 编辑
  2008年11月16日
摘要: 我也客串了一回面试官 阅读全文
posted @ 2008-11-16 16:33 raof01 阅读(126) 评论(0) 推荐(0) 编辑
  2008年11月12日
摘要: 本文仅考虑单继承的情况。——多继承复杂性比较高,暂不讨论。考虑class AA{// ...private: TYPE m_1;};class BB: public AA{// ...};这种情况下,~AA()必须是virtual,原因不必多说——这是使用C++来作OO开发的best practice。这就引入了一个问题:虚表的处理。首先观察一下C+... 阅读全文
posted @ 2008-11-12 16:53 raof01 阅读(881) 评论(0) 推荐(0) 编辑
  2008年7月13日
摘要: IT人生 阅读全文
posted @ 2008-07-13 16:43 raof01 阅读(126) 评论(0) 推荐(0) 编辑
  2008年4月18日
摘要: 1、Object:有类型(包括简单类型、用户自定义类型、复合类型、函数类型……)的一个存储区。2、Variable:有名字的Object。3、static(不全,希望有大虾补全)在函数中,表示该对象是由该函数所有的使用者共享的对象。 在类中,表示该对象是类对象,由所有该类的实例共享。因此没有this。 在编译单元中,表示该对象只在该编译单元内可见。 把局部变量改变为静态... 阅读全文
posted @ 2008-04-18 16:52 raof01 阅读(143) 评论(0) 推荐(0) 编辑