Addison-Wesley Nitty Gritty Programming Series C++

by
Format: Paperback
Pub. Date: 2001-12-01
Publisher(s): Addison-Wesley Professional
List Price: $34.23

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

This book offers the ANSI C++ language in a succinct and concise form. In part one. you will not only learn the different elements of C++ coding, but will also get to know how the programming language is typically used. Part two provides greater detail on inheritance and different methods and also looks at more advanced language elements. The final section acts as a quick reference section to build your knowlegde quickly.

Table of Contents

Preface xi
Part I --- Start up! 1(56)
Introduction
3(4)
The legacy of C
7(12)
Variables, loops, conditional statements
8(4)
Variables under the microscope
12(3)
Functions
15(4)
Example of a function
15(1)
Return values
16(1)
Passing parameters means copying
17(2)
Pointers and memory management
19(16)
The basic principle of the pointer
20(1)
Pointers as array variables
21(1)
Dynamically acquired memory
22(4)
Strings
26(2)
Other properties of pointers
28(4)
Flat and deep copies
28(2)
Non-directional pointers
30(1)
Type security
31(1)
The parameters of a program
32(3)
Objects
35(18)
A simple class
37(2)
Destructors
39(2)
Encapsulation
41(2)
Separation of interface and implementation
43(3)
Dynamically created objects
46(2)
Inheritance
48(5)
The greater whole
53(4)
The properties of C++
53(4)
Part II --- Take that! 57(182)
References
59(12)
References instead of pointers
59(1)
References as method parameters
60(11)
Important properties
60(2)
References as passed parameters
62(1)
References as return values
63(3)
const in method signatures
66(3)
Combinations of const and references
69(2)
Inheritance in detail
71(28)
Polymorphism
71(3)
Polymorphism at work
74(7)
An example
74(1)
Polymorphic references
75(2)
The allure of downcast
77(2)
Avoiding downcasts
79(2)
The inheritance of interfaces
81(3)
Private inheritance
84(3)
Protected and friend elements
87(2)
Multiple inheritance
89(7)
Independent base classes
89(3)
The diamond constellation
92(2)
Virtual base classes
94(2)
Objects as attributes
96(3)
Methods in detail
99(38)
Constructors and destructors
99(5)
Constructors
99(4)
Destructors
103(1)
Methods with a special function
104(8)
The assignment operator
105(3)
The copy constructor
108(1)
The relational operator
108(1)
Default behavior
109(2)
Preventing default implementation
111(1)
Overloaded methods
112(8)
The basic principle
112(1)
When do parameter lists differ?
113(3)
An example
116(2)
Overloaded constructors
118(2)
Operators
120(11)
An addition operator for texts
120(3)
A global addition operator
123(3)
Other properties of operators
126(1)
A sideways look at operators
127(3)
Type conversion operators
130(1)
Default parameters
131(2)
Inline methods
133(4)
Advanced language elements
137(26)
Exceptions
137(9)
The basic principle
137(1)
Exceptions in methods
138(1)
Differentiating exceptions
139(4)
Using exceptions
143(3)
Static attribute and methods
146(5)
The basic principle
147(3)
References to static objects
150(1)
Templates
151(12)
Abstractions
151(2)
Classes as templates
153(1)
Possible traps
154(3)
Functions as templates
157(1)
Templates or interface inheritance?
157(6)
Hand tools
163(26)
switch and enum
163(5)
A class example
163(2)
Multiple branches created by switch
165(1)
Enum as a clear sets of values
166(2)
Macros
168(6)
A macro for debug outputs
169(2)
Risks and side effects
171(1)
Conditional translation with macros
172(2)
Structs, namespaces, typedefs, unions
174(5)
Structs
174(1)
Namespaces
175(2)
Typedefs
177(1)
Unions
178(1)
Type conversions
179(10)
Implicit conversion between basic types
179(2)
Explicit conversion between basic types
181(2)
Conversions between classes
183(1)
Dynamic type conversions
184(3)
Old conversions with a new look
187(2)
Pointers in detail
189(16)
Extraneous interfaces
189(3)
Undirected references
192(3)
Adding to reference strings
192(1)
Generating methods
193(1)
Consuming methods
194(1)
Pointers and const
195(2)
Non-typed pointers
197(1)
Function pointers
198(2)
Safe pointer administration
200(1)
Avoiding duplicates
201(4)
Object-oriented thought
205(18)
Classes without attributes
206(3)
Methods with multiple parameters
209(2)
Methods with multiple return values
211(3)
Global variables
214(2)
UML
216(3)
Design patterns
219(4)
The standard library
223(10)
Containers and algorithms
224(4)
Containers
224(1)
Iterators
225(1)
Algorithms
226(2)
Strings
228(1)
Streams
229(1)
Mathematical functions
230(1)
C standard library
230(3)
Compilation
233(6)
Executable programs
234(1)
Libraries
235(1)
Compiler flags
236(3)
Part III --- Go ahead! 239(38)
Variables
241(10)
Basic types
241(2)
Number types
241(1)
Character types
242(1)
Self-defined types
243(2)
Other types
245(6)
Literal constants
247(1)
Variable names
248(1)
Declaration and visibility
248(1)
Constants
249(2)
Operators
251(6)
Control flow
257(4)
Conditions
257(1)
Multiple branches
257(1)
Loops
258(3)
Classes
261(10)
Methods
262(3)
Inheritance
265(6)
Additional language elements
271(4)
Functions
271(1)
Templates
271(2)
Namespaces
273(1)
Exceptions
273(1)
Comments
274(1)
Preprocessor instructions
275(2)
A Code of the text class 277(4)
Index 281

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.