9780613920469

Accelerated C++ : Practical Programming by Example

by
  • ISBN13:

    9780613920469

  • ISBN10:

    0613920465

  • Copyright: 2000-08-01
  • Publisher: Turtleback Books
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $63.55
We're Sorry.
No Options Available at This Time.

Author Biography

Andrew Koenig is a member of the Large-Scale Programming Research Department at AT&T's Shannon Laboratory, and the Project Editor of the C++ standards committee.

Table of Contents

Prefacep. xi
Getting startedp. 1
Commentsp. 1
#includep. 2
The main functionp. 2
Curly bracesp. 2
Using the standard library for outputp. 3
The return statementp. 3
A slightly deeper lookp. 4
Detailsp. 5
Working with stringsp. 9
Inputp. 9
Framing a namep. 11
Detailsp. 14
Looping and countingp. 17
The problemp. 17
Overall structurep. 18
Writing an unknown number of rowsp. 18
Writing a rowp. 22
The complete framing programp. 27
Countingp. 30
Detailsp. 31
Working with batches of datap. 35
Computing student gradesp. 35
Using medians instead of averagesp. 41
Detailsp. 48
Organizing programs and datap. 51
Organizing computationsp. 51
Organizing datap. 61
Putting it all togetherp. 66
Partitioning the grading programp. 68
The revised grading programp. 70
Detailsp. 71
Using sequential containers and analyzing stringsp. 75
Separating students into categoriesp. 75
Iteratorsp. 79
Using iterators instead of indicesp. 82
Rethinking our data structure for better performancep. 84
The list typep. 85
Taking strings apartp. 87
Testing our split functionp. 90
Putting strings togetherp. 91
Detailsp. 96
Using library algorithmsp. 101
Analyzing stringsp. 101
Comparing grading schemesp. 110
Classifying students, revisitedp. 116
Algorithms, containers, and iteratorsp. 120
Detailsp. 121
Using associative containersp. 123
Containers that support efficient look-upp. 123
Counting wordsp. 124
Generating a cross-reference tablep. 126
Generating sentencesp. 129
A note on performancep. 136
Detailsp. 137
Writing generic functionsp. 139
What is a generic function?p. 139
Data-structure independencep. 143
Input and output iteratorsp. 150
Using iterators for flexibilityp. 152
Detailsp. 153
Defining new typesp. 155
Student_info revisitedp. 155
Class typesp. 156
Protectionp. 160
The Student_info classp. 163
Constructorsp. 164
Using the Student_info classp. 166
Detailsp. 167
Managing memory and low-level data structuresp. 169
Pointers and arraysp. 169
String literals revisitedp. 176
Initializing arrays of character pointersp. 177
Arguments to mainp. 179
Reading and writing filesp. 180
Three kinds of memory managementp. 182
Detailsp. 185
Defining abstract data typesp. 187
The Vec classp. 187
Implementing the Vec classp. 188
Copy controlp. 195
Dynamic Vecsp. 202
Flexible memory managementp. 203
Detailsp. 209
Making class objects act like valuesp. 211
A simple string classp. 212
Automatic conversionsp. 213
Str operationsp. 214
Some conversions are hazardousp. 221
Conversion operatorsp. 222
Conversions and memory managementp. 223
Detailsp. 225
Using inheritance and dynamic bindingp. 227
Inheritancep. 227
Polymorphism and virtual functionsp. 232
Using inheritance to solve our problemp. 237
A simple handle classp. 243
Using the handle classp. 247
Subtletiesp. 248
Detailsp. 250
Managing memory (almost) automaticallyp. 253
Handles that copy their objectsp. 254
Reference-counted handlesp. 259
Handles that let you decide when to share datap. 263
An improvement on controllable handlesp. 264
Detailsp. 268
Revisiting character picturesp. 269
Designp. 269
Implementationp. 278
Detailsp. 288
Where do we go from here?p. 291
Use the abstractions you havep. 291
Learn morep. 293
Language detailsp. 295
Declarationsp. 295
Typesp. 299
Expressionsp. 305
Statementsp. 308
Library summaryp. 311
Input-outputp. 311
Containers and iteratorsp. 314
Algorithmsp. 321
Indexp. 325
Table of Contents provided by Syndetics. All Rights Reserved.

Rewards Program

Reviews for Accelerated C++ : Practical Programming by Example (9780613920469)