(Some people say that C programmers can be divided into two categories, those who have read EffectiveC and those who have not. The third edition of the world's leading C guru, Scott Meyers, certainly deserves such an assessment. When you read this book, you will get a key to improve your C skills agilely. 1. Get yourself used to C Clause 01: Treat C as a language Federation Clause 02: Try to replace #define Clause with const, enum, inline Clause 03: Use const as much as possible Clause 04: Determine that the object has been initialized before it is used 2. Structure /Destruction/Assignment Item 05: Understand which functions C silently writes and calls Item 06: If you don't want to use compiler-generated functions, you should clearly reject Item 07: Declare Virtual destructors for polymorphic base classes 08: Don't let exceptions escape destructors Item 09: Never call Virtual functions during struct and destructor Item 10: Make Operator= return a reference to this Item 11: Manage "self-assignment" in Operator= Item 12: When copying targets Don't forget every ingredient
EffectiveC .chm)