Safe C++: How to avoid common mistakes (Paperback)
暫譯: 安全的 C++:如何避免常見錯誤 (平裝本)

Vladimir Kushnir

  • 出版商: O'Reilly
  • 出版日期: 2012-07-10
  • 定價: $875
  • 售價: 8.0$700
  • 語言: 英文
  • 頁數: 142
  • 裝訂: Paperback
  • ISBN: 1449320937
  • ISBN-13: 9781449320935
  • 相關分類: C++ 程式語言
  • 立即出貨

買這商品的人也買了...

商品描述

It’s easy to make lots of programming mistakes in C++—in fact, any program over a few hundred lines is likely to contain bugs. With this book, you’ll learn about many common coding errors that C++ programmers produce, along with rules and strategies you can use to avoid them.

Author Vladimir Kushnir shows you how to use his Safe C++ library, based in part on programming practices developed by the C++ community. You’ll not only find recipes for identifying errors during your program’s compilation, runtime, and testing phases, you’ll learn a comprehensive approach for making your C++ code safe and bug-free.

  • Get recipes for handling ten different error types, including memory leaks and uninitialized variables
  • Discover problems C++ inherited from C, like pointer arithmetic
  • Insert temporary and permanent sanity checks to catch errors at runtime
  • Apply bug prevention techniques, such as using separate classes for each data type
  • Pursue a testing strategy to hunt and fix one bug at a time—before your code goes into production

商品描述(中文翻譯)

在 C++ 中很容易犯下許多程式錯誤——事實上,任何超過幾百行的程式都可能包含錯誤。通過這本書,您將學習到許多 C++ 程式設計師常見的編碼錯誤,以及您可以用來避免這些錯誤的規則和策略。

作者 Vladimir Kushnir 向您展示如何使用他的 Safe C++ 函式庫,這部分基於 C++ 社群所發展的程式設計實踐。您不僅會找到在程式編譯、執行和測試階段識別錯誤的配方,還會學到一種全面的方法來使您的 C++ 代碼安全且無錯誤。

- 獲得處理十種不同錯誤類型的配方,包括記憶體洩漏和未初始化變數
- 發現 C++ 從 C 繼承的問題,例如指標運算
- 插入臨時和永久的合理性檢查,以在執行時捕捉錯誤
- 應用錯誤預防技術,例如為每種資料類型使用單獨的類別
- 追求測試策略,一次追蹤和修復一個錯誤——在您的代碼投入生產之前