Effective C++中文版 2nd Edition

    技术2022-05-11  69

    下载 EffectiveC++ 2ed 中文版

    目录(Contents) vii前言(Preface) xiii致谢(Acknowledgments. 中文版略) xvii导读(Introduction) 001改变旧有的C习惯(Shifting from C to C++) 013条款1:尽量以 const 和 inline 取代 #define 013Prefer const and inline to #define.条款2:尽量以 取代 017Prefer to .条款3:尽量以 new 和 delete 取代 malloc() 和 free() 019Prefer new and delete to malloc and free.条款4:尽量使用 C++ 风格的注释形式 021Prefer C++-style comments.内存管理(Memory Management) 022条款5:使用相同形式的 new 和 delete 023Use the same form in corresponding uses of new and delete.条款6:记得在 destructor 中以delete 对付 pointer members 024Use delete on pointer members in destructors. 


    最新回复(0)