C++完全參考(第4版)

C++完全參考(第4版)

《C++完全參考(第4版)》是2005年清華大學出版社出版的圖書,作者是Herbert Schildt。

基本介紹

  • 書名:C++完全參考(第4版)
  • 作者:Herbert Schildt
  • ISBN:9787302101574
  • 定價:96元
  • 出版社:清華大學出版社
  • 出版時間:2005-1-13
  • 裝幀:平裝
圖書簡介,目錄,

圖書簡介

本書作者Herbert Schildt是程式設計語言的大師,其著作涉及C、C++、Java和C# 等語言。
本書以一種清晰而易懂的方式,全面介紹了C++語言的各個方面,如關鍵字、語法、函式、類和庫,以及一些C++的高級特性,如重載、繼承、虛擬函式、命名空間、模板、RTTI(運行時類型信息)以及STL(標準模板庫)等。讀者不僅可以從本書中學習到程式設計所需的語言知識,而且還可了解如何進行程式設計。
本書適合作為C++語言的教學用書。本書介紹的內容適用於所有現代編程環境,適合於各種水平的C++程式設計人員,既可以作為幫助初學者解答特定問題的參考指南,也可以讓C++編程高手從中發現許多有用功能的深入介紹。

目錄

PartITheFoundationofC++:TheCSubset
1AnOverviewofC
TheOriginsandHistoryofC
CIsaMiddle-LevelLanguage
CIsaStructuredLanguage
CIsaProgrammer'sLanguage
TheFormofaCProgram
TheLibraryandLinking
SeparateCompilation
Understandingthe.Cand.CPPFileExtensions.
2Expressions
TheFiveBasicDataTypes
ModifyingtheBasicTypes
IdentifierNames
Variables
WhereVariablesAreDeclared
LocalVariables
FormalParameters
GlobalVariables
TheconstandvolatileQualifiers
const
volatile
StorageClassSpecifiers
extern
staticVariables
registerVariables
VariableInitializations
Constants
HexadecimalandOctalConstants
StringConstants
BackslashCharacterConstants
Operators
TheAssignmentOperator
TypeConversioninAssignments
MultipleAssignments
ArithmeticOperators
IncrementandDecrement
RelationalandLogicalOperators
BitwiseOperators
The?Operator
The&and*PointerOperators
TheCompile-TimeOperatorsizeof
TheCommaOperator
TheDot(.)andArrow(->)Operators
The[]and()Operators
PrecedenceSummary
Expressions
OrderofEvaluation
TypeConversioninExpressions
Casts
SpacingandParentheses
CompoundAssignments
3Statements
TrueandFalseinCandC++
SelectionStatements
if
Nestedifs
Theif-else-ifLadder
The?Alternative
TheConditionalExpression
switch
NestedswitchStatements
IterationStatements
TheforLoop
forLoopVariations
TheInfiniteLoop
forLoopswithNoBodies
ThewhileLoop
Thedo-whileLoop
DeclaringVariablesWithinSelectionandIterationStatements
JumpStatements
ThereturnStatement
ThegotoStatement
ThebreakStatement
Theexit()Function
ThecontinueStatement
ExpressionStatements
BlockStatements
4ArraysandNull-TerminatedStrings
Single-DimensionArrays
GeneratingaPointertoanArray
PassingSingle-DimensionArraystoFunctions
Null-TerminatedStrings
Two-DimensionalArrays
ArraysofStrings
MultidimensionalArrays
IndexingPointers
ArrayInitialization
UnsizedArrayInitializations
ATic-Tac-ToeExample
5Pointers
WhatArePointers?
PointerVariables
ThePointerOperators
PointerExpressions
PointerAssignments
PointerArithmetic
PointerComparisons
PointersandArrays
ArraysofPointers
MultipleIndirection
InitializingPointers
PointerstoFunctions
C'sDynamicAllocationFunctions
ProblemswithPointers
6Functions
TheGeneralFormofaFunction
ScopeRulesofFunctions
FunctionArguments
CallbyValue,CallbyReference
CreatingaCallbyReference
CallingFunctionswithArrays
argcandargv--Argumentstomain()
ThereturnStatement
ReturningfromaFunction
ReturningValues
ReturningPointers
FunctionsofTypevoid
WhatDoesmain()Return?
Recursion
FunctionPrototypes
StandardLibraryFunctionPrototypes
DeclaringVariable-LengthParameterLists
Old-StyleVersusModernFunctionParameterDeclarations...
7Structures,Unions,Enumerations,
andUser-DefinedTypes
Structures
AccessingStructureMembers
StructureAssignments
ArraysofStructures
PassingStructurestoFunctions
PassingStructureMemberstoFunctions
PassingEntireStructurestoFunctions
StructurePointers
DeclaringaStructurePointer
UsingStructurePointers
ArraysandStructuresWithinStructures
Bit-Fields
Unions
Enumerations
UsingsizeoftoEnsurePortability
typedef
8C-StyleConsoleI/O
AnImportantApplicationNote
ReadingandWritingCharacters
AProblemwithgetchar()
Alternativestogetchar()
ReadingandWritingStrings
FormattedConsoleI/O
printf()
PrintingCharacters
PrintingNumbers
DisplayinganAddress
The%nSpecifier
FormatModifiers
TheMinimumFieldWidthSpecifier
ThePrecisionSpecifier
JustifyingOutput
HandlingOtherDataTypes
The*and#Modifiers
scanf()
FormatSpecifiers
InputtingNumbers
InputtingUnsignedIntegers
ReadingIndividualCharactersUsingscanf()
ReadingStrings
InputtinganAddress
The%nSpecifier
UsingaScanset
DiscardingUnwantedWhiteSpace
Non-White-SpaceCharactersintheControlString
YouMustPassscanf()Addresses
FormatModifiers
SuppressingInput
9FileI/O
CVersusC++FileI/O
StreamsandFiles
Streams
TextStreams
BinaryStreams
Files
FileSystemBasics
TheFilePointer
OpeningaFile
ClosingaFile
WritingaCharacter
ReadingaCharacter
Usingfopen(),getc(),putc(),andfclose()
Usingfeof()
WorkingwithStrings:fputs()andfgets()
rewind()
ferror()
ErasingFiles
FlushingaStream
fread()andfwrite()
Usingfread()andfwrite()
fseek()andRandom-AccessI/O
fprintf()andfscanf()
TheStandardStreams
TheConsoleI/0Connection
Usingfreopen()toRedirecttheStandardStreams
10ThePreprocessorandComments
ThePreprocessor
#define
DefiningFunction-likeMacros
#include

相關詞條

熱門詞條

聯絡我們