內容簡介
一本全面、易用的C++程式語言教材。作者用清晰、簡潔的風格講解概念和技術,幫助讀者掌握控制結構、函式、數組、指針和串、類和數據抽象、
運算符重載、檔案處理以及數據結構等關鍵內容。權威的作者、經典的教材、一流的譯者、嚴格的審校、精細的編輯,讀者必將在計算機科學的宮殿中由登堂而入室。
一本全面、易用的C++程式語言教材。作者用清晰、簡潔的風格講解概念和技術,幫助讀者掌握控制結構、函式、數組、指針和串、類和數據抽象、
運算符重載、檔案處理以及數據結構等關鍵內容。權威的作者、經典的教材、一流的譯者、嚴格的審校、精細的編輯,讀者必將在計算機科學的宮殿中由登堂而入室。 本書是一本全面、易用的C++程式語言教材。作者用清晰、簡潔的風格講解概念和技術,幫助讀者掌握控制結構、函式、數組、指針和串、類和數據抽象、運算符重載、檔案處理以及數據結構等關鍵內容。每章中間的自測題、章末的編程項目、豐富的實例、大量的代碼、為讀者提供了掌握C++編程概念所必需的實戰演練。
圖書目錄
Chapter 1 C++ BASICS
1.1 INTRODUCTION TO C++
1.2 VARIABLES, EXPRESSIONS, AND ASSIGNMENT STATEMENTS
1.3 CONSOLE INPUT/OUTPUT
1.4 PROGRAM STYLE
1.5 LIBRARIES AND NAMESPACES
Chapter 2 FLOW OF CONTROL
2.1 BOOLEAN EXPRESSION
2.2 BRANCHING MECHANISMS
2.3 LOOPS
Chapter 3 FUNCTION BASICS
3.1 PREDEFINED FUNCTIONS
3.2 PROGRAMMER-DEFINED FUNCTIONS
3.3 SCOPE RULES
Chapter 4 PARAMETERS AND OVERLOADING
4.1 PARAMTERS
4.2 OVERLOADING AND DEFAULT AGGUMENTS
4.3 TESRING AND DEBUGGING FUNCTIONS
Chapter 5 ARRAYS
5.1 INTRDOUCTION TO ARRAYS
5.2 ARRAUS IN FUNCTIONS
5.3 PROGRAMMING WITH ARRAYS
5.4 MULTIDMENSIONAL ARRAYS
Chapter 6 STRUCTURES AND CLASSES
6.1 STRUCTURES
6.2 CLASSES
Chapter 7 CONSTRUCTORS AND OTHER TOOLS
7.1 CONSTRUCTORS
7.2 MORE TOOLS
7.3 VECTORS-A PREVIEWS OF THE STANDARD TEAMPLATE LIBRARY
Chapter 8 OPERATOR OVERLOADING,FRIENDS,AND REFERENCES
8.1 BASIC OPERATOR OVERLOADING
8.2 FRIEND FUNCTIONS AND AUTOMATIC TYPE CONVERSION
8.3 REFERENCES AND MORE OVERLOADED OPERATORS
Chapter 9 STRINGS
9.1 AN ARRAY TYPE FOR STRINGS
9.2 CHARACTER MANIPULATION TOOLS
9.3 THE STANDARD CLASS string
Chapter 10 POINTERS AND DYNAMIC ARRAYS
10.1 POINTERS
10.2 DYNAMIC ARRAYS
10.3 CLASSES, POINTERS, AND DYNAMIC ARRAYS
Chapter 11 SEPARATE COMPILATION AND NAMESPACES
11.1 SEPARATE COMPILATION
11.2 NAMESPACES
Chapter 12 STREAMS AND FILE I/0
12.1 I/0 STREAMS
12.2 TOOLS FOR STREAM, I/0
12.3 STREAM HIERARCHIES: A PREVIEW OF INHERITANCE
12.4 RANDOM ACCESS TO FILES
Chapter 13 RECURSION
13.1 RECURSIVE void FUNCTIONS
13.2 RECURSIVE FUNCTIONS THAT RETURN A VALUE
13.3 THINKING RECURSIVELY
Chapter 14 INHERITANCE
14.1 INHERITANCE BASICS
14.2 PROGRAMMING WITH INHERITANCE
Chapter 15 POLYMORPHISM AND VIRTUAL FUNCTIONS
15.1 VIRTUAL FUNCTION BASICS
15.2 POINTERS AND VIRTUAL FUNCTIONS
CHAPTER16 TEMPLATES
16.1 FUNCTION TEMPLATES
16.2 CLASS TEMPLATES
16.3 TEMPLATES AND INHERITANCE
Chapter 17 LINKED DATA STRUCTURES
17.1 NODES AND LINKED LISTS
17.2 LINKED LIST APPLICATIONS
17.3 ITERATORS
17.4 TREES
Chapter 18 EXCEPTION HANDUNG
18.1 EXCEPTION HANDLING BASICS
18.2 PROGRAMMING TECHNIQUES FOR EXCEPTION HANDLING
Chapter 19 STANDARD TEMPLATE LIBRARY
19.1 ITERATORS
19.2 CONTAINERS
19.3 GENERIC ALGORITHMS
Chapter20 PATTERNS AND UML
20.1 PATTERNS
20.2 UML
APPENDIX1 C++ KEYWORDS
APPENDIX2 Precedence of operators
APPENDIX3 THE ASCLL CHARACTER
APPENDIX4 Some Library Functions
APPENDIX5 Old and New Header Files
Further Reading
Index
作者簡介
作者:(美國)薩維弛
加州大學聖迭戈分校計算機科學與工程系教授。他於1969年在加州大學伯克利分校獲得博士學位。他的研究領域包括複雜性理論、形式語言理論、計算語言學等。除了為數眾多的研究論文外,他還著有讀部計算機科學教材,包括《Absolute Java》、《Problem Solving with C++》、《Java:An Introduction to Computer Science and Programming》等。