More Effective C++: 35 New Ways to Improve Your Programs and Designs (Paperback)
Scott Meyers
- 出版商: Addison Wesley
- 出版日期: 1996-01-08
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 336
- 裝訂: Paperback
- ISBN: 020163371X
- ISBN-13: 9780201633719
-
相關分類:
C++ 程式語言
-
相關翻譯:
More Effective C++ : 35個改善編程與設計的有效方法 (簡體中文版) (More Effective C++: 35 New Ways to Improve Your Programs and Designs) (簡中版)
-
其他版本:
Effective C++ : 55 Specific Ways to Improve Your Programs and Designs, 3/e (Paperback)
買這商品的人也買了...
-
$549Effective C++: 50 Specific Ways to Improve Your Programs and Design, 2/e
-
$1,200$1,176 -
$580$458 -
$2,500$2,375 -
$680$537 -
$2,610$2,480 -
$2,170$2,062 -
$980$774 -
$970Introduction to Algorithms, 2/e
-
$1,078Computing Concepts With Java Essentials, 3/e
-
$860$731 -
$690$587 -
$590$466 -
$690$538 -
$720$569 -
$750$675 -
$560$504 -
$480$379 -
$750$593 -
$1,986Code Complete: A Practical Handbook of Software Construction, 2/e (Paperback)
-
$2,140$2,033 -
$880$581 -
$620$527 -
$820$648 -
$300$270
相關主題
商品描述
Table Of Contents
Acknowledgments.
Introduction.
Basics.
ITEM 1. Distinguish Between Pointers and References.
ITEM 2. Prefer C++-Style Casts.
ITEM 3. Never Treat Arrays Polymorphically.
ITEM 4. Avoid Gratuitous Default Constructors.
ITEM 2. Prefer C++-Style Casts.
ITEM 3. Never Treat Arrays Polymorphically.
ITEM 4. Avoid Gratuitous Default Constructors.
Operators.
ITEM 5. Be Wary of User-Defined Conversion Functions.
ITEM 6. Distinguish Between Prefix and Postfix Forms of Increment and decrement operators.
ITEM 7. Never Overload &&, ||, or,.
ITEM 8. Understand the Different Meanings of New and Delete.
ITEM 6. Distinguish Between Prefix and Postfix Forms of Increment and decrement operators.
ITEM 7. Never Overload &&, ||, or,.
ITEM 8. Understand the Different Meanings of New and Delete.
Exceptions.
ITEM 9. Use Destructors to Prevent Resource Leaks.
ITEM 10. Prevent Resource Leaks in Constructors.
ITEM 11. Prevent Exceptions from Leaving Destructors.
ITEM 12. Understand How Throwing an Exception Differs from Passing a Parameter or Calling a Virtual Function.
ITEM 13. Catch Exceptions by Reference.
ITEM 14. Use Exception Specifications Judiciously.
ITEM 15. Understand the Costs of Exception Handling.
ITEM 10. Prevent Resource Leaks in Constructors.
ITEM 11. Prevent Exceptions from Leaving Destructors.
ITEM 12. Understand How Throwing an Exception Differs from Passing a Parameter or Calling a Virtual Function.
ITEM 13. Catch Exceptions by Reference.
ITEM 14. Use Exception Specifications Judiciously.
ITEM 15. Understand the Costs of Exception Handling.
Efficiency.
ITEM 16. Remember the 80-20 Rule.
ITEM 17. Consider Using Lazy Evaluation.
ITEM 18. Amortize the Cost of Expected Computations.
ITEM 19. Understand the Origin of Temporary Objects.
ITEM 20. Facilitate the Return Value Optimization.
ITEM 21. Overload to Avoid Implicit Type Conversions.
ITEM 22. Consider Using Op= Instead of Stand-Alone Op.
ITEM 23. Consider Alternative Libraries.
ITEM 24. Understand the Costs of Virtual Functions, Multiple Inheritance, Virtual Base Classes, and RTTI.
ITEM 17. Consider Using Lazy Evaluation.
ITEM 18. Amortize the Cost of Expected Computations.
ITEM 19. Understand the Origin of Temporary Objects.
ITEM 20. Facilitate the Return Value Optimization.
ITEM 21. Overload to Avoid Implicit Type Conversions.
ITEM 22. Consider Using Op= Instead of Stand-Alone Op.
ITEM 23. Consider Alternative Libraries.
ITEM 24. Understand the Costs of Virtual Functions, Multiple Inheritance, Virtual Base Classes, and RTTI.
Techniques.
ITEM 25. Virtualizing Constructors and Non-Member Functions.
ITEM 26. Limiting the Number of Objects of a Class.
ITEM 27. Requiring or Prohibiting Heap-Based Objects.
ITEM 28. Smart Pointers.
ITEM 29. Reference Counting.
ITEM 30. Proxy Classes.
ITEM 31. Making Functions Virtual With Respect to More Than One Object.
ITEM 26. Limiting the Number of Objects of a Class.
ITEM 27. Requiring or Prohibiting Heap-Based Objects.
ITEM 28. Smart Pointers.
ITEM 29. Reference Counting.
ITEM 30. Proxy Classes.
ITEM 31. Making Functions Virtual With Respect to More Than One Object.
Miscellany.
ITEM 32. Program in the Future Tense.
ITEM 33. Make Non-Leaf Classes Abstract.
ITEM 34. Understand How to Combine C++ and C in the Same Program.
ITEM 35. Familiarize Yourself With the Language Standard.
ITEM 33. Make Non-Leaf Classes Abstract.
ITEM 34. Understand How to Combine C++ and C in the Same Program.
ITEM 35. Familiarize Yourself With the Language Standard.
Recommended Reading.
An Auto_Ptr Implementation.
General Index.
Index of Example Classes, Functions, and Templates. 020163371XT04062001