网志档案列表:2 / 2006

Effective C++ 36: Differentiate between inheritance of interface and inheritance of implementation @ 2/28/2006

There are three types of member functions, namely pure virtual functions, simple (nonpure) functions, and nonvirtual functions. ...
发布于 2/28/2006 11:04:54 | 评论:0

Effective C++35: Make sure public inheritance models "isa" @ 2/27/2006

Is penguin a bird? You may say yes, but this is not exactly the case in the realm of C++. [code] class Bird { public: virt...
发布于 2/27/2006 16:11:36 | 评论:0

如何设置cout的输出格式 @ 2/27/2006

设置cout的输出格式有两种办法,一种是用cout的成员变量,一种是用<iomanip>里面提供的函数 比如要设置输出的行宽,就有两种方法: [code] #include<iostram> #include<iomanip> using nam...
发布于 2/27/2006 14:38:20 | 评论:0

Effective C++ 33: Use inlining judiciously @ 2/22/2006

Inlining a function could fasten your program, but only when inlining is judiciouly used. Inlining can also casue your program ...
发布于 2/22/2006 10:23:29 | 评论:0

用眼过度,痛ing... @ 2/21/2006

星期天没事干一直在看片,昨天又从早8点一直工作到晚12点,看了一天屏幕,晚上睡觉时眼睛刺痛,差点就睡不着。 早上起床决定今天休息,不去实验室了,但为了保护眼睛,不能玩电脑,实在没事可做,最后还是去了实验室。 晚上MM给买了一瓶眼药水,滴上以后好像管点用...
发布于 2/21/2006 21:06:11 | 评论:2

实验室新进的变态机器 @ 2/21/2006

P4 2.8GHz Mem:1GBytes(马上要再加1G内存) 存储容量: 1.1T(使用RAID5配置) 用来做存储服务器,主要开ftp,这种配置算是中规中矩。 最bt的是用了5块300GB希捷SATA做raid,因为没钱买SCSI。机箱用...
发布于 2/21/2006 14:42:56 | 评论:2

Effective C++ 32: Postpone variable definitions as long as possible @ 2/21/2006

Most of us are told to define variables at the beginning of a block when we are learning C programming language. Defining all va...
发布于 2/21/2006 14:09:23 | 评论:0

Effective C++ 31: Never return a reference to a local object or a dereferenced pointer... @ 2/20/2006

Item 31: Never return a reference to a local object or to a dereferenced pointer initialized by new within the function. The...
发布于 2/20/2006 11:22:50 | 评论:0

VC++: internal heap limit reached... @ 2/20/2006

自己写了一个类,CSet<Type>,是一个集合类,然后写了一个成员函数 [code]CSet< CSet<Type> > CSet<Type>::GetSubSets()[/code] 用于返回该集合的所有子集组成的集合,但编译时出错了,说"inte...
发布于 2/20/2006 10:47:22 | 评论:1

Effective C++ 30. Avoid member functions that return non-const references or pointers less accessibl @ 2/18/2006

The reason Stafford and Oregon, the author of Effective C++, gave for this is as follows: [quote] The reason for making a memb...
发布于 2/18/2006 10:11:47 | 评论:0