Ray's playground

 

2011年6月2日

Item 1:Distinguish between pointers and references.(More Effective C++)

摘要: First, recognize that there is no such thing as a null reference. A reference must always refer to some object. As a result, if you have a variable whose purpose is to refer to another object, but it is possible that there might not be an object to refer to, you should make the variable a pointer, . 阅读全文

posted @ 2011-06-02 15:44 Ray Z 阅读(235) 评论(0) 推荐(0) 编辑

导航