Exploring C++ 11, 2/e (Paperback)
暫譯: 探索 C++ 11, 第二版 (平裝本)
Ray Lischner
- 出版商: Apress
- 出版日期: 2013-12-23
- 售價: $2,230
- 貴賓價: 9.5 折 $2,119
- 語言: 英文
- 頁數: 623
- 裝訂: Paperback
- ISBN: 1430261935
- ISBN-13: 9781430261933
-
相關分類:
C++ 程式語言
-
其他版本:
Exploring C++20: The Programmer's Introduction to C++
買這商品的人也買了...
相關主題
商品描述
Exploring C++ divides C++ up into bite-sized chunks that will help you learn the language one step at a time. Assuming no familiarity with C++, or any other C-based language, you’ll be taught everything you need to know in a logical progression of small lessons that you can work through as quickly or as slowly as you need.
C++ can be a complicated language. Writing even the most straight-forward of programs requires you to understand many disparate aspects of the language and how they interact with one another. C++ doesn't lend itself to neat compartmentalization the way other languages do. Rather than baffle you with complex chapters explaining functions, classes and statements in isolation we’ll focus on teaching you how to achieve results. By learning a little bit of this and a little of that you’ll soon have amassed enough knowledge to be writing non-trivial programs and will have built a solid foundation of experience that puts those previously baffling concepts into context.
In this fully-revised second edition of Exploring C++, you’ll learn how to use the standard library early in the book. Next, you’ll learn to work with operators, objects and data-sources in increasingly realistic situations. Finally, you’ll start putting the pieces together to create sophisticated programs of your own design confident that you’ve built a firm base of experience from which to grow.
What youll learn
- Learn how to use C++ from first principles in a practical hands-on way.
- Understand how to use Custom types, virtual functions and objects to structure your code
- Build your own function templates, namespaces and containers from the ground up.
- Put everything together to create sophisticated programs that work with pointers, dynamic memory and overloaded functions to achieve the results you want.
Who this book is for
Read this book if you want to learn C++ and have a basic understanding of how computer programs work. You don't need to know a C-based language before you start, but a basic understanding of how programs are structured is helpful.
Table of Contents
- Part 1: The Basics - Honing your tools
- Part 1: The Basics -Reading C++ Code
- Part 1: The Basics -Integer Expressions
- Part 1: The Basics -Strings
- Part 1: The Basics -Simple Input
- Part 1: The Basics -Error Messages
- Part 1: The Basics -For Loops
- Part 1: The Basics -Formatted Output
- Part 1: The Basics -Arrays and Vectors
- Part 1: The Basics -Incrementand Decrement
- Part 1: The Basics -Conditions and Logic
- Part 1: The Basics -Compound Statements
- Part 1: The Basics -Introduction to File I/O
- Part 1: The Basics -The Map Data Structure
- Part 1: The Basics -Type Synonyms
- Part 1: The Basics -Characters
- Part 1: The Basics -Character Categories
- Part 1: The Basics -Case-Folding
- Part 1: The Basics -Writing Functions
- Part 1: The Basics -Function Arguments
- Part 1: The Basics -Using Algorithms
- Part 1: The Basics -Overloading Function Names
- Part 1: The Basics -Big and Little Numbers
- Part 1: The Basics -Very Big and Very Little Numbers
- Part 1: The Basics -Documentation
- Part 1: The Basics -Project1: Body-Mass Index
- Part 2: Custom Types - Custom Types
- Part 2: Custom Types - Overloading Operators
- Part 2: Custom Types - Custom I/O Operators
- Part 2: Custom Types - Assignment and Initialization
- Part 2: Custom Types - Writing Classes
- Part 2: Custom Types - More About Member Functions
- Part 2: Custom Types - Access Levels
- Part 2: Custom Types - Introduction to Object-Oriented Programming
- Part 2: Custom Types - Inheritance
- Part 2: Custom Types - Virtual Functions
- Part 2: Custom Types - Classes and Types
- Part 2: Custom Types - Declarations and Definitions
- Part 2: Custom Types - Using Multiple Source Files
- Part 2: Custom Types - Function Objects
- Part 2: Custom Types - Useful Algorithms
- Part 2: Custom Types - Iterators
- Part 2: Custom Types - Exceptions
- Part 2: Custom Types - More Operators
- Part 2: Custom Types - Project2: Fixed-point Numbers
- Part 3: Generic Programming - Function Templates
- Part 3: Generic Programming - Class Templates
- Part 3: Generic Programming - Template Specialization
- Part 3: Generic Programming - Partial Specialization
- Part 3: Generic Programming - Names and Namespaces
- Part 3: Generic Programming - Containers
- Part 3: Generic Programming - International Characters
- Part 3: Generic Programming - Locales and Facets
- Part 3: Generic Programming - TextI/O
- Part 3: Generic Programming - Project3: Currency Type
- Part 4: Real Programming - Pointers
- Part 4: Real Programming - Dynamic Memory
- Part 4: Real Programming - Exception-Safety
- Part 4: Real Programming - Old-Fashioned Arrays
- Part 4: Real Programming - SmartPointers
- Part 4: Real Programming - Working with Bits
- Part 4: Real Programming - Enumerations
- Part 4: Real Programming - Multiple Inheritance
- Part 4: Real Programming - Traits and Policies
- Part 4: Real Programming - Names and Templates
- Part 4: Real Programming - Overloaded Functions
- Part 4: Real Programming - Metaprogramming
- Part 4: Real Programming - Project4: Calculator
商品描述(中文翻譯)
《探索 C++》將 C++ 分解為易於消化的小部分,幫助您逐步學習這門語言。假設您對 C++ 或任何其他基於 C 的語言沒有任何熟悉度,您將在邏輯上逐步學習所有必要的知識,這些小課程可以讓您根據需要快速或緩慢地進行學習。
C++ 可能是一門複雜的語言。即使是編寫最簡單的程序,也需要您理解語言中許多不同的方面及其相互作用。C++ 不像其他語言那樣容易進行整齊的劃分。我們不會用複雜的章節來困惑您,這些章節單獨解釋函數、類和語句,而是專注於教您如何達成結果。通過學習這一點和那一點,您將很快積累足夠的知識來編寫非平凡的程序,並建立一個堅實的經驗基礎,將那些之前令人困惑的概念放入上下文中。
在《探索 C++》的這一全面修訂的第二版中,您將在書的早期學習如何使用標準庫。接下來,您將學習在越來越現實的情境中使用運算符、對象和數據源。最後,您將開始將各個部分組合在一起,創建您自己設計的複雜程序,並有信心您已經建立了堅實的經驗基礎,從中成長。
您將學到的內容:
- 以實用的動手方式從基本原則學習如何使用 C++。
- 理解如何使用自定義類型、虛擬函數和對象來結構化您的代碼。
- 從零開始構建自己的函數模板、命名空間和容器。
- 將所有內容整合在一起,創建與指針、動態內存和重載函數一起工作的複雜程序,以達成您想要的結果。
本書適合對象:
如果您想學習 C++ 並對計算機程序的運作有基本了解,請閱讀本書。您不需要在開始之前了解基於 C 的語言,但對程序結構的基本理解會有所幫助。
目錄:
1. 第一部分:基礎 - 磨練您的工具
2. 第一部分:基礎 - 閱讀 C++ 代碼
3. 第一部分:基礎 - 整數表達式
4. 第一部分:基礎 - 字串
5. 第一部分:基礎 - 簡單輸入
6. 第一部分:基礎 - 錯誤訊息
7. 第一部分:基礎 - for 迴圈
8. 第一部分:基礎 - 格式化輸出
9. 第一部分:基礎 - 陣列和向量
10. 第一部分:基礎 - 增量和減量
11. 第一部分:基礎 - 條件和邏輯
12. 第一部分:基礎 - 複合語句
13. 第一部分:基礎 - 檔案 I/O 簡介
14. 第一部分:基礎 - 地圖數據結構
15. 第一部分:基礎 - 類型同義詞
16. 第一部分:基礎 - 字元
17. 第一部分:基礎 - 字元類別
18. 第一部分:基礎 - 大小寫折疊
19. 第一部分:基礎 - 編寫函數
20. 第一部分:基礎 - 函數參數
21. 第一部分:基礎 - 使用演算法
22. 第一部分:基礎 - 重載函數名稱
23. 第一部分:基礎 - 大數和小數
24. 第一部分:基礎 - 非常大和非常小的數字
25. 第一部分:基礎 - 文件說明
26. 第一部分:基礎 - 專案 1:身體質量指數
27. 第二部分:自定義類型 - 自定義類型
28. 第二部分:自定義類型 - 重載運算符
29. 第二部分:自定義類型 - 自定義 I/O 運算符
30. 第二部分:自定義類型 - 指派和初始化
31. 第二部分:自定義類型 - 編寫類別
32. 第二部分:自定義類型 - 更多關於成員函數
33. 第二部分:自定義類型 - 存取級別
34. 第二部分:自定義類型 - 物件導向程式設計簡介
35. 第二部分:自定義類型 - 繼承
36. 第二部分:自定義類型 - 虛擬函數
37. 第二部分:自定義類型 - 類別和類型
38. 第二部分:自定義類型 - 聲明和定義
39. 第二部分:自定義類型 - 使用多個源文件
40. 第二部分:自定義類型 - 函數物件
41. 第二部分:自定義類型 - 有用的演算法
42. 第二部分:自定義類型 - 迭代器
43. 第二部分:自定義類型 - 異常
44. 第二部分:自定義類型 - 更多運算符
45. 第二部分:自定義類型 - 專案 2:定點數
46. 第三部分:泛型程式設計 - 函數模板
47. 第三部分:泛型程式設計 - 類模板
48. 第三部分:泛型程式設計 - 模板特化
49. 第三部分:泛型程式設計 - 部分特化
50. 第三部分:泛型程式設計 - 名稱和命名空間
51. 第三部分:泛型程式設計 - 容器
52. 第三部分:泛型程式設計 - 國際字元
53. 第三部分:泛型程式設計 - 地區和面向
54. 第三部分:泛型程式設計 - 文本 I/O
55. 第三部分:泛型程式設計 - 專案 3:貨幣類型
56. 第四部分:實際程式設計 - 指針
57. 第四部分:實際程式設計 - 動態內存
58. 第四部分:實際程式設計 - 異常安全
59. 第四部分:實際程式設計 - 老式陣列
60. 第四部分:實際程式設計 - 智能指針
61. 第四部分:實際程式設計 - 位元操作
62. 第四部分:實際程式設計 - 列舉
63. 第四部分:實際程式設計 - 多重繼承
64. 第四部分:實際程式設計 - 特徵和政策
65. 第四部分:實際程式設計 - 名稱和模板
66. 第四部分:實際程式設計 - 重載函數
67. 第四部分:實際程式設計 - 元編程
68. 第四部分:實際程式設計 - 專案 4:計算器