C++面向對象程式設計第6版影印版

C++面向對象程式設計第6版影印版

《C++面向對象程式設計第6版影印版》是2008年清華大學出版社出版的圖書,作者是薩維廳。本書主要講述了C++面向對象的一些程式設計方法。

基本介紹

  • 書名:C++面向對象程式設計第6版影印版
  • 作者:(美)薩維廳(Savitch.W.)
  • 譯者:佟俐鵑
  • ISBN:9787302167136
  • 頁數:499
  • 出版社清華大學出版社
  • 出版時間:2008年03月
  • 重約:0.680KG
內容提要,圖書目錄,

內容提要

本書由著名作者Walter Savitch編寫,美國很多大學採用它為“面向對象程式設計(OOP)”的教材,是一本非常暢銷的教材,其前5版在全球已經擁有數十萬讀者。作者結合自己多年的教學經驗,根據教學大綱精心設計並編寫了書中內容。
根據國內“C++面向對象程式設計”雙語教學的需要,對原書進行了一定的改編,刪去了C語言的內容,使之更適合國內OOP的教學大綱。

圖書目錄

Chapter 1 Introduction to C++
1.1 INTRODUCTION TO C++
Origins of the C++ Language
C++ and Object-Oriented Programming
A Sample C++ Program
PROGRAMMING TIP: Input and Output Syntax
Layout of a Simple C+~ Program
PITFALL: Putting a Space before the include File Name
Compiling and Running a C++ Program
PROGRAMMING TIP: Getting Your Program to Run
1.2 PROGRAM STYLE
Comments
Naming Constants
Chapter Summary
Programming Projects
chapter 2 C++ Basics
2.1 VARIABLES AND ASSIGNMENTS
Variables
Names: Identifiers
Variable Declarations
Assignment Statements
PTFALL: Uninitialized Variables
2.2 INPUT AND OUTPUT
Output Using cout
PROGRAMMING TIP: End Each Program with a \n or endl
Include Directives and Namespaces
Formatting for Numbers with a Decimal Point
Input Using cin
Designing Input and Output
PROGRAMMING TIP: Line Breaks in I/O
IV Problem Solving with C++ 6th Edition
2.3 DATA TYPES AND EXPRESSIONS
Simple Types
Introduction to the Class string
Type Compatibitities
Arithmetic Operators and Expressions
2.4 FLOW OF CONTROL
Boolean Expressions
Branching Mechanisms
Loop Mechanisms
Chapter Summary
Programming Projects
chapter 3 Functions
3.1 THE BASICS OF FUNCTIONS
Using Predefined Functions
Type Casting
Programmer-Defined Functions
Namespaces Revisited
Case Study: Buying Pizza
3.2 CALL-BY-REFERENCE PARAMETERS
A View of Call-by-Value
A First View of Call-by-Reference
Call-by-Reference in Detail
PROGRAMMING TIP: What Kind of Parameter to Use
3.3 OVERLOADING FUNCTION NAMES
Introduction to Overloading
PROGRAMMING EXAMPLE: Revised Pizza-Buying Program
3.4 PROCEDURAL ABSTRACTION
The Black Box Analogy
Case Study: Supermarket Pricing
3.5 TESTINGAND DEBUGGING FUNCTIONS
Stubs and Drivers
3.6 GENERAL DEBUGGING TECHNIQUES
Keep an Open Mind
Check Common Erros
Localize the Error
The assert Macro
Chapter Summary
Programming Projects
Chapter 4 Arrays and Pointers
Chapter 5 I/O Streams as an Introduction to Objects and Classes
Chapter 6 Strings and Vectors
Chapter 7 Defining Classes
Chapter 8 Friends,Overloaded Operators,Arrays in Classes
Chapter 9 Sepailation and Namespaces
Chapter 10 Inheritance
Chapter 11 Exception Handling
Chapter 12 Templates
Chapter 13 Standard Template Library
APPENDIX 1 C++Keywords
APPENDIX 2 Precedence of Operators
APPENDIX 3 Some Library Functions
APPENDIX 4 Inline Functions
APPENDIX 5 Overloading the Array Index Square Brackets
APPENDIX 6 The this Pointer
APPENDIX 7 Overloading Operators as Member Operators

相關詞條

熱門詞條

聯絡我們