- Use std::string instead of char * or char []
- Use standard containers instead of homegrown containers
- Manage your class data to avoid resource leaks and crashes
- Use virtual destructors in class hierarchies
- Use smart pointers instead of raw pointers
版权所有 罗明