注冊(cè) | 登錄讀書(shū)好,好讀書(shū),讀好書(shū)!
讀書(shū)網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書(shū)科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)C/C++及其相關(guān)C++專家導(dǎo)引(英文版)

C++專家導(dǎo)引(英文版)

C++專家導(dǎo)引(英文版)

定 價(jià):¥36.00

作 者: (美)溫斯頓 著
出版社: 機(jī)械工業(yè)出版社
叢編項(xiàng): 經(jīng)典原版書(shū)庫(kù)
標(biāo) 簽: C++

ISBN: 9787111166016 出版時(shí)間: 2005-11-23 包裝: 膠版紙
開(kāi)本: 小16開(kāi) 頁(yè)數(shù): 306 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  如果你希望C++成為你駕馭的程序設(shè)計(jì)語(yǔ)言,如果你希望學(xué)習(xí)語(yǔ)言的精華并為編程實(shí)踐做準(zhǔn)備,如果你希望學(xué)到面向?qū)ο蟪绦蛟O(shè)計(jì)的優(yōu)勢(shì),以及如何通過(guò)C++類層次結(jié)構(gòu)的設(shè)計(jì)原理最大化這些優(yōu)勢(shì),本書(shū)正是你的最佳選擇。以一個(gè)簡(jiǎn)短且具代表性的C++程序體現(xiàn)關(guān)鍵概念是本書(shū)的一大特色。這個(gè)程序采用容器和有軌電車的知識(shí)來(lái)報(bào)告鐵道運(yùn)輸?shù)呢涍\(yùn)能力,從而體現(xiàn)了C++類抽象自然類的能力。書(shū)中用類概念編寫(xiě)的程序體現(xiàn)了如何創(chuàng)建類和對(duì)象;如何定義構(gòu)造函數(shù)、閱讀器(Reader)和寫(xiě)入器(Writer)函數(shù);如何發(fā)揮數(shù)據(jù)抽象的優(yōu)勢(shì);如何繼承成員變量值和成員函數(shù);在運(yùn)行時(shí)如何創(chuàng)建新的類對(duì)象;在運(yùn)行時(shí)如何定位正確的函數(shù);在類的層次結(jié)構(gòu)中如何使用構(gòu)造函數(shù);如何使用保護(hù)、私有成員變量和成員函數(shù);如何使用保護(hù)和私有的類派生;如何設(shè)計(jì)類的層次結(jié)構(gòu);如何采用模板重用類的定義,等等。本書(shū)特色●通過(guò)逐步改進(jìn)一個(gè)簡(jiǎn)短且完整的程序解釋每個(gè)新思想●以易于掌握的if-then規(guī)則的形式概括關(guān)鍵知識(shí)點(diǎn)●強(qiáng)調(diào)面向?qū)ο蟪绦蛟O(shè)計(jì)、過(guò)程抽象和數(shù)據(jù)抽象的實(shí)質(zhì)●幫助讀者建立一個(gè)通用的、模板模式的個(gè)人類庫(kù)

作者簡(jiǎn)介

  PatrickHenryWinston,麻省理工學(xué)院人工智能和計(jì)算機(jī)科學(xué)教授。他在人工智能領(lǐng)域十分著名,著有多部思路清晰且見(jiàn)解獨(dú)到的專著。除本書(shū)外,他還著有《OntoC》、《OntoJava2》、《ArtificialIntelligence》等書(shū)。

圖書(shū)目錄

1 HOW THIS BOOK TEACHES YOU THE LANGUAGE
why you should learn C++
object-oriented programming languages
procedure-oriented programing languages
programming cliches
2 HOW TO COMPILE AND RUN A SIMPLE PROGRAM
compiling, linking, and executing
statements and declarations
the output operator, <<, and character strings
case sensitivity and blank insensitivity
operators and operands
3 HOW TO DECLARE VARIABLES
data types and variable declarations
initialization and assignment
integral data types
4 HOW TO WRITE ARrFHMETIC EXPRESSIONS
arithmetic
precedence and association
binary and unary operators
type casting
5 HOW TO WRITE STATEMENTS THAT READ INFORMATION FROM YOUR KEYBOARD
the input operator, >>
input redirection
6 HOW TO DEFINE SIMPLE FUNCTIONS
calling and returning from functions
arguments, parameters, and values
function overloading
7 HOW TO BENEFIT FROM PROCEDURE ABSTRACTION
making programs easier to reuse, read, and debug
making programs easier to augment, improve, and adapt
8 HOW TO WORK WITH LOCAL AND GLOBAL VARIABLES
extent and scope
local, static, and global variables
compound statements
9 HOW TO CREATE CLASSES AND OBJECTS
user-defined data types, classes, and objects
class specification and member variables
the class-member operator
10 HOW TO DEHNE MEMBER FUNCTIONS
the special, class-object argument
member function prototypes
the class-scope operator, : :
11 HOW TO DEFINE CONSTRUCTOR MEMBER FUNCTIONS
the default constructor
argument-bearing constructors
12 HOW TO DEFHNE READER AND WRITER MEMBER FUNCTIONS
reader and writer member functions
imaginary member variables
13 HOW TO BFaNEF1T FROM DATA ABSTRACTION
access functions and data abstraction
making programs easier to reuse
14 HOW TO PROTECT MEMBER VARIABLES FROM HARMFUL REFERENCE
private member variables and member functions
the public interface
15 HOW TO DEFINE CLASSES THAT INHERIT VARIABLES AND FUNCTIONS
inheriting member variables and member functions
derived classes and base classes
multiple inheritance and shadowing
16 HOW TO DESIGN CLASSES AND CLASS HIERARCHIES
explicit representation
reusing functions and avoiding duplication
the local-view and the look-it-up principles
the need-m-know and the keep-it-simple principles
17 HOW TO PERFORM TESTS USING NUMERICAL PREDICATES
equal, ==, and not equal, !--
greater than, >, and less than, <
not, !
18 HOW TO WRITE ONF.-WAY AND TWO-WAY CONDITONAL STATEMENTS
Boolean expressions
if and if else
empty and compound statements
the conditional operator, ?:
19 HOW TO COMBINE BOOLEAN EXPRESSIONS
and, &&, and or, ::
evaluation order
20 HOW TO WRITE ITERATION STATEMENTS
while and for statements
augmented assignment operators
increment, ++, and decrement, --, operators
side effects and evaluation order
21 HOW TO PROCESS DATA IN FILES
while reading and for reading loops
action of the input operator at the end of a file
22 HOW TO WRITE RECURSIVE FUNCTIONS
functions that call themselves
the base part and the recursion part
efficiency considerations
23 HOW TO SOLVE DEFINITION ORDERING PROBLEMS WITH FUNCTION PROTOTYPES
the definition-before-call requirement
declare now, define later
24 HOW TO WORK WITH ARRAYS OF NUMBERS
arrays of numeric elements
filling a numeric array from a file
25 HOW TO WORK WITH ARRAYS OF CLASS OBJECTS
arrays of class-object elements
filling an object array from a file
26 HOW TO CREATE FILE STREAMS FOR INPUT AND OUTPUT
creating streams
opening and closing files for reading and writing
Ifstream and of stream Statements
27 HOW TO CREATE NEW CLASS OBIECTS AT RUN TIME
pointers and the free store
allocating space with new
the dereferencing operator, *
the class-pointer operator, ->
the address-of operator, &
28 HOW TO STORE POintERS TO CLASS OBJECTS
wasting space by defining too-large object arrays
saving space by defining too-large pointer arrays
29 HOW TO WRITE PROGRAMS THAT FIND
MEMBER FUNCTIONS AT RUN TIME
arrays of pointers to miscellaneous obiects
virtual member functions
pure virtual functions
30 HOW TO WRITE MULTIWAY CONDTIONAL STATEMENTS
switch statements
the cerr output stream
exit statements
31 HOW TO USE ENUMERATONS TO IMPROVE READABILITY
the mnemonic sterility of numbers
the enumeration data type
the integral data types
the character data type
32 HOW TO WRITE CONSTRUCTORS THAT CALL OTHER CONSTRUCTORS
33 HOW TO WRITE MEMBER FUNCTIONS THAT CALL OTHER MEMBER FUNCTIONS
34 HOW TO USE PROTECTED AND PRIVATE VARIABLES AND FUNCTIONS
35 HOW TO USE PROTECTED AND PRIVATE CLASS DERIVATIONS
36 HOW TO WRITE FUNCTIONS THAT RETURN CHARACIXR STRINGS
character strings and character arrays
the null character, \O
37 HOW TO USE CALL-BY-REFERENCE PARAMETERS
call by value and incomplete argument copy/ng
using call by reference to access entire objects
using call by reference to save time
using call by reference to alter arguments
38 HOW TO OVERLOAD THE OUTPUT OPERATOR
copy-free function return
pass-through objects
operator overloading
39 HOW TO PRODUCE TABULAR DISPLAYS
the peintf function
field widths and padding characters
printing strings, characters, and numbers
40 HOW TO WroTE STATEMEUTS THAT READ CHARACTER STRINGS FROM HLES
input buffers
using the input operator with a character pointer
array names viewed as constant pointers
41 HOW TO TEST STRING CHARACTERS
characters viewed as integers
obtaining character codes
using enumeration constants as character codes
42 HOW TO DEPOSIT CHARACTER STRINGS INTO CLASS OBJECTS
creating character arrays at run time using new
using strlen and strcpy to measure and copy
43 HOW TO RECLAIM MEMORY WITH DELETE AND DESTRUCTORS
garbage and memory leaks
delete viewed as the complement of new
destructor member functions
stadic member variables
44 HOW TO PREVENT OBJECT COPYING
the excess-reclamation bug
defining your own copy constructor
45 HOW TO ORGANIZE A MULTIPLE-FILE PROGRAM
header files
separating class and member-function definitious
inline functions
managing global variables with static and extern
46 HOW TO COMPILE A MULTIPLE-FILE PROGRAM
recording file dependencies in a makefile
maintaining systems using the make utility
47 HOW TO IMPLEMENT LISTS
using lists to conserve memory
internal and external pointers
the null pointer, NULL
48 HOW TO MAKE ONE CLASS A FRIEND OF ANOTHER CLASS
49 HOW TO REUSE CLASS DEFINITIONS US/NG TEMPLATES
50 HOW TO ITERATE OVER LISTS USING ITERATION CLASS OBJECTS
APPENDIX A: OPERATOR PRECEDENCE
APPENDIX B: FORMATTED DISPLAY
COLOPHON
INDEX

本目錄推薦

掃描二維碼
Copyright ? 讀書(shū)網(wǎng) m.ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)