种豆资源网

当前位置:首页 > 百科 > 百科综合 / 正文

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

(2019-11-29 21:14:54) 百科综合
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

标 签

搜索
随机推荐

Powered By 种豆资源网||