Computer Science: A Structured Programming Approach Using C++, 2/e
暫譯: 計算機科學:使用 C++ 的結構化程式設計方法(第二版)
Behrouz A. Forouzan, Richard F. Gilberg
- 出版商: Thomson
- 出版日期: 2003-08-21
- 售價: $1,080
- 貴賓價: 9.8 折 $1,058
- 語言: 英文
- 頁數: 912
- 裝訂: Paperback
- ISBN: 0534374808
- ISBN-13: 9780534374808
-
相關分類:
C++ 程式語言、Computer-Science
下單後立即進貨 (約5~7天)
買這商品的人也買了...
-
$680$537 -
$650$553 -
$460$304 -
$1,029Operating System Concepts, 6/e (Windows XP Update)
-
$860$568 -
$460$363 -
$1,920$1,824 -
$420$328 -
$780$741 -
$280$218 -
$590$466 -
$820$804 -
$750$638 -
$490$382 -
$560$476 -
$720$569 -
$550$468 -
$390$304 -
$880$695 -
$650$553 -
$450$351 -
$850$723 -
$480$379 -
$750$593 -
$720$569
相關主題
商品描述
Based on the tenet that good habits are formed early, authors Behrouz Forouzan and Richard Gilberg consistently emphasize the principles of structured programming and software engineering. Every complete program uses a consistent style. As programs are analyzed, styles and standards are further explained. Whenever possible, the authors develop the principle of a subject before they introduce the language implementation so the student understands the concept before dealing with the nuances of C++. Also, the vast array of figures and tables connects visually with students. By integrating software engineering principles and encouraging the student to resist the temptation to immediately code, the text builds a solid foundation in problem solving.
Table of Contents
1. INTRODUCTION TO COMPUTERS.
Computer Systems. Computer Hardware.
Computer Software. Computing Environments. Computer Languages. Writing, Editing,
Compiling, and Linking Programs. Program Execution. System Development. Tips and
Common Programming Errors. Key Terms. Summary. Practice Sets.
2. INTRODUCTION
TO THE C++ LANGUAGE.
Background. C++ Programs. Identifiers. Data Types.
Variables. Constants. Coding Constants. Reading and Writing Data. Programming
Examples. Tips and Common Programming Errors. Key Terms. Summary. Practice
Sets.
3. STRUCTURE OF A C++ PROGRAM.
Expressions. Precedence and
Associativity. Side Effects. Evaluating Expressions. Mixed Type Expressions.
Statements. Sample Programs. Tips and Common Programming Errors. Key Terms.
Summary. Practice Sets.
4. FUNCTIONS.
Designing Structured Programs.
Functions in C++. User-Defined Functions. Default Parameter Arguments. Standard
Library Functions. Scope. A Programming Example--Calculator Program. Tips and
Common Programming Errors. Key Terms. Summary. Practice Sets.
5.
SELECTION--MAKING DECISIONS.
Logical Data and Operators. Two-Way Selection.
Multiway Selection. More Standard Library Functions. A Menu Program. Tips and
Common Programming Errors. Key Terms. Summary. Practice Sets.
6.
REPETITION.
Concept of a Loop. Pretest and Post-Test Loops. Initialization
and Updating. Event-Controlled and Counter-Controlled Loops. Loops in C++. Loop
Examples. Other Statements Related to Looping. Looping Applications. Recursion.
A Programming Example--The Calculator Program. Tips and Common Programming
Errors. Key Terms. Summary. Practice Sets.
7. TEXT FILES.
Concept of a
File. Files and Streams. Standard Library Input/Output Functions. Formatting
Input and Output. File Example. Character Input/Output Functions. Character
Input/Output Examples. Detecting File Errors. Tips and Common Programming
Errors. Key Terms. Summary. Practice Sets.
8. ARRAYS.
Concepts. Using
Arrays in C++. Arrays and Functions. Array Applications. Sorting. Searching.
Two-Dimensional Arrays. Multidimensional Arrays. Programming Example--Calculate
Row and Column Averages. Tips and Common Programming Errors. Key Terms. Summary.
Practice Sets.
9. POINTERS.
Concepts. Pointer Variables. Accessing
Variables Through Pointers. Pointer Declaration and Definition. Initialization
of Pointer Variables. Pointers and Functions. Pointers to Pointers.
Compatibility. lvalue and rvalue. Pointer Applications. Arrays and Pointers.
Pointer Arithmetic and Arrays. Passing an Array to a Function. Understanding
Complicated Declarations. Memory Allocation Functions. Array of Pointers.
Programming Application. Tips and Common Programming Errors. Key Terms. Summary.
Practice Sets.
10. DERIVED TYPES--ENUMERATION, STRUCTURE, AND UNION.
The
Type Definition (typedef). Enumerated Types. Structure. Accessing Structures.
Complex Structures. Array of Structures. Unions. Tips and Common Programming
Errors. Key Terms. Summary. Practice Sets.
11. CLASSES.
Basic Class
Concepts. Defining a Class Object. Constructors and Destructors. Complex Class
Functions. Programming Applications. Tips and Common Programming Errors. Key
Terms. Summary. Practice Sets.
12. MORE CLASS FEATURES.
Inline Functions.
Initialization List. Overloading. Static Members. Tips and Common Programming
Errors. Key Terms. Summary. Practice Sets.
13. INHERITANCE.
Inheritance.
Static and Dynamic Binding: Polymorphism. Abstract Classes. Composition. Tips
and Common Programming Errors. Key Terms. Summary. Practice Sets.
14.
STRINGS.
String Concepts. C++ Strings. String Input/Output. Arrays of
Strings. String Manipulation Functions. A Programming Example--Morse Code. C
Strings. Tips and Common Programming Errors. Key Terms. Summary. Practice
Sets.
15. BINARY FILES.
Classification of Files. Using Binary Files.
Standard Library Functions for Files. Converting File Type. File Program
Examples. Tips and Common Programming Errors. Key Terms. Summary. Practice
Sets.
16. LINKED LISTS.
Linked List Structure. Basic Linked List
Functions. Linked List Design. Programming Example--Linked List Average. Tips
and Common Programming Errors. Key Terms. Summary. Practice Sets.
17.
TEMPLATES.
Function Template. Class Template. Tips and Common Programming
Errors. Key Terms. Summary. Practice Sets.
18. EXCEPTIONS.
User Defined
Exceptions. Standard Exceptions. Tips and Common Programming Errors. Key Terms.
Summary. Practice Sets.
Features
Updates strings coverage with a completely revised chapter that reflects the
ISO string class.
Includes new coverage of class templates and exception
handling.
商品描述(中文翻譯)
根據「良好習慣應早期養成」的信念,作者 Behrouz Forouzan 和 Richard Gilberg 一直強調結構化程式設計和軟體工程的原則。每個完整的程式都使用一致的風格。在分析程式時,風格和標準會進一步解釋。作者在介紹語言實作之前,盡可能先發展主題的原則,以便學生在處理 C++ 的細微差別之前理解概念。此外,豐富的圖形和表格能夠與學生進行視覺上的連結。透過整合軟體工程原則並鼓勵學生抵抗立即編碼的誘惑,這本書為問題解決建立了堅實的基礎。
目錄
1. 電腦簡介。
電腦系統。電腦硬體。電腦軟體。計算環境。電腦語言。撰寫、編輯、編譯和連結程式。程式執行。系統開發。提示和常見程式錯誤。關鍵術語。摘要。練習題。
2. C++ 語言簡介。
背景。C++ 程式。識別符。資料類型。變數。常數。編碼常數。讀取和寫入資料。程式範例。提示和常見程式錯誤。關鍵術語。摘要。練習題。
3. C++ 程式的結構。
表達式。優先順序和結合性。副作用。評估表達式。混合型別表達式。語句。範例程式。提示和常見程式錯誤。關鍵術語。摘要。練習題。
4. 函數。
設計結構化程式。C++ 中的函數。使用者定義函數。預設參數引數。標準庫函數。範圍。一個程式範例——計算機程式。提示和常見程式錯誤。關鍵術語。摘要。練習題。
5. 選擇——做出決策。
邏輯資料和運算子。雙向選擇。多向選擇。更多標準庫函數。一個菜單程式。提示和常見程式錯誤。關鍵術語。摘要。練習題。
6. 重複。
迴圈的概念。前測和後測迴圈。初始化和更新。事件控制和計數器控制的迴圈。C++ 中的迴圈。迴圈範例。與迴圈相關的其他語句。迴圈應用。遞迴。一個程式範例——計算機程式。提示和常見程式錯誤。關鍵術語。摘要。練習題。
7. 文本檔案。
檔案的概念。檔案和串流。標準庫輸入/輸出函數。格式化輸入和輸出。檔案範例。字元輸入/輸出函數。字元輸入/輸出範例。檢測檔案錯誤。提示和常見程式錯誤。關鍵術語。摘要。練習題。
8. 陣列。
概念。在 C++ 中使用陣列。陣列和函數。陣列應用。排序。搜尋。二維陣列。多維陣列。程式範例——計算行和列的平均值。提示和常見程式錯誤。關鍵術語。摘要。練習題。
9. 指標。
概念。指標變數。通過指標訪問變數。指標的宣告和定義。指標變數的初始化。指標和函數。指向指標的指標。相容性。lvalue 和 rvalue。指標應用。陣列和指標。指標運算和陣列。將陣列傳遞給函數。理解複雜的宣告。記憶體分配函數。指標的陣列。程式應用。提示和常見程式錯誤。關鍵術語。摘要。練習題。
10. 派生類型——列舉、結構和聯合。
類型定義 (typedef)。列舉類型。結構。訪問結構。複雜結構。結構的陣列。聯合。提示和常見程式錯誤。關鍵術語。摘要。練習題。
11. 類別。
基本類別概念。定義類別物件。建構函數和解構函數。複雜類別函數。程式應用。提示和常見程式錯誤。關鍵術語。摘要。練習題。
12. 更多類別特性。
內聯函數。初始化列表。重載。靜態成員。提示和常見程式錯誤。關鍵術語。摘要。練習題。
13. 繼承。
繼承。靜態和動態綁定:多型。抽象類別。組合。提示和常見程式錯誤。關鍵術語。摘要。練習題。
14. 字串。
字串概念。C++ 字串。字串輸入/輸出。字串的陣列。字串操作函數。一個程式範例——摩斯密碼。C 字串。提示和常見程式錯誤。關鍵術語。摘要。練習題。
15. 二進位檔案。
檔案分類。使用二進位檔案。檔案的標準庫函數。轉換檔案類型。檔案程式範例。提示和常見程式錯誤。關鍵術語。摘要。練習題。
16. 鏈結串列。
鏈結串列結構。基本鏈結串列函數。鏈結串列設計。程式範例——鏈結串列平均值。提示和常見程式錯誤。關鍵術語。摘要。練習題。
17. 模板。
函數模板。類別模板。提示和常見程式錯誤。關鍵術語。摘要。練習題。
18. 異常。
使用者定義異常。標準異常。提示和常見程式錯誤。關鍵術語。摘要。練習題。
特點
更新字串的涵蓋範圍,完全修訂的章節反映 ISO 字串類別。
包括類別模板和異常處理的新內容。