
| 译序(侯捷) 导读(introduction) 基础议题(basics) 条款1:仔细区别 pointers 和 references distinguish between pointers and references. 条款2:最好使用 c++ 转型操作符 prefer c++-style casts. 条款3:绝对不要以多态(polymorphically)方式处理数组 never treat arrays polymorphically. 条款4:非必要不提供 default constructor avoid gratuitous default constructors. 操作符(operators) 条款5:对定制的“类型转换函数”保持警觉 be wary of user-defined conversion functions. 条款6:区别 increment/decrement 操作符的 |
商品评论(0条)