GO TO
C++ for Business Programming, Second Edition
by
John C. Molluzzo - Pace University, New York
Publisher: Prentice Hall
Publishing Date: 2005/08/02
eText ISBN-10
0-13-128899-7
eText ISBN-13
978-0-13-128899-7
Print ISBN-10
0-13-046700-6
Print ISBN-13
978-0-13-046700-3
« Back to My CourseSmart
C++ for Business Programming, Second Edition
by
John C. Molluzzo - Pace University, New York
eTextbook $62.00
(180 day subscription)
Compare Online & Downloadable
Copyright, ii
Preface, xv
I. C++ Basics, 1
II. Object-Oriented Progr...
A. Computers and Data, 79...
B. Program Control, 802
Table of Contents
Copyright, ii
Preface, xv
I. C++ Basics, 1
1. Introduction to C++, 1
Why Study C++?, 1
1.1. Our First C++ Program, 3
1.2. Integers and Arithmetic, 20
1.3. Solving a Problem with Integers, 32
1.4. Other Integer Data Types, 36
Chapter Review, 42
2. Real Numbers, 45
2.1. Real Numbers, 45
2.2. Solving Problems with Real Numbers, 52
2.3. More on Arithmetic, 64
2.4. Three Difficulties When Displaying Decimal Numbers with cout, 75
Chapter Review, 78
3. Iteration, 80
3.1. Relation Conditions, 80
3.2. Indefinite Iteration: The while and do Statements, 83
3.3. Solving a Problem with Indefinite Iteration, 96
3.4. Definite Iteration, 105
3.5. Nested Loops, 118
Chapter Review, 126
4. Decision Making, 128
4.1. Basic Decision Making, 128
4.2. Compound Conditions—The Logical Operators, 139
4.3. Nested if Statements, 146
4.4. The switch Statement, 161
Chapter Review, 172
5. Functions, 174
5.1. The Function Concept, 175
5.2. User-Defined Functions that Return a Value, 191
5.3. Programs that Use Functions, 203
5.4. The C++ Math Library Functions, 227
Chapter Review, 231
6. Arrays, 234
6.1. Basic Concepts, 234
6.2. Processing an Array: for Loops, 242
6.3. Sorting an Array, 250
6.4. Multidimensional Arrays, 256
Chapter Review, 264
7. Pointers and C-Strings, 266
7.1. Pointers, 266
7.2. C-Strings, 277
7.3. Arrays of Strings and Pointers, 290
Chapter Review, 297
8. Pointers, Arrays, and Functions, 299
8.1. Pointers, Reference Variables, and Functions, 299
8.2. Arrays and Functions, 309
8.3. Strings and Functions, 318
8.4. The Standard Library String Functions, 326
8.5. Character Classification and Conversion Functions, 336
8.6. Dynamic Memory Allocation, 351
Chapter Review, 360
9. User-Defined Data Types and Tables, 363
9.1. The typedef and enum Statements, 364
9.2. Structures, 371
9.3. Arrays of Structures: Tables, 379
9.4. Structures, Functions, and Pointers, 407
Chapter Review, 424
II. Object-Oriented Programming, 426
10. The string Class: An Introduction to Classes and Objects, 426
10.1. Objects, Classes, and Object-Oriented Systems, 427
10.2. Introduction to string Objects, 430
10.3. Operations on string Objects, 438
10.4. Making Decisions with Strings, 444
10.5. Functions and string Objects, 446
10.6. Manipulating string Objects, 451
10.7. Putting Strings to Work, 458
10.8. Arrays of Strings, 470
Chapter Review, 473
11. Programmer-Defined Classes and Objects, 476
11.1. Declaring Objects and Classes, 476
11.2. A More Useful Class – Accessor and Mutator Methods, 487
11.3. Constructor Overloading and Destructors, 496
11.4. Default Arguments and Object Assignment, 504
11.5. General Function Overloading and Function Templates, 511
Chapter Review, 517
12. Manipulating Objects, 519
12.1. Using Arrays, Pointers, and Dynamic Memory Allocation, 520
12.2. The Copy Constructor, 528
12.3. Using const with Classes, 540
12.4. Objects, Functions and Pointers, 556
12.5. Dynamic Allocation of Objects, 581
12.6. Static Data Members and Functions, 588
Chapter Review, 598
13. Inheritance, 600
13.1. Inheritance, 601
13.2. Functions in Class Hierarchies, 618
13.3. Polymorphism, 629
13.4. Abstract Base Classes, 649
Chapter Review, 661
14. Files, 664
14.1. Input/Output Streams, 665
14.2. Processing a File One Character at a Time, 686
14.3. Random File Access, 692
14.4. Binary Sequential File Processing, 699
14.5. Random Record Input/Output, 709
Chapter Review, 727
15. Special Topics: Friends, Operator Overloading, Macros, and Inline Functions, 730
15.1. friend Functions, 731
15.2. Overloading Basic Arithmetic Operators, 738
15.3. Overloading Assignment and the this Pointer, 745
15.4. Overloading the Insertion and Extraction Operators, 754
15.5. Overloading Compound Assignment Operators, 763
15.6. Overloading Relational Operators, 768
15.7. Overloading Unary Operators, 775
15.8. Macros and Inline Functions, 779
Chapter Review, 788
A. Computers and Data, 791
A.1. A Model Computer System, 791
A.2. Data Representation—Characters, 794
A.3. Data Representation—Integers, 797
A.4. Data Representation—Real Numbers, 799
Exercises Appendix A, 800
B. Program Control, 802
B.1. Sequence, 802
B.2. Selection, 803
B.3. Iteration, 808
B.4. Combinations, 812
Please use the Print button in the CourseSmart Reader header.