C++ for C Programmers

Ira Pohl

Publisher: Benjamin/Cummings, 1989, 244 pages

ISBN: 0-8053-0910-1

Keywords: Programming

Last modified: April 6, 2021, 5:07 p.m.

C++ for C programmers is written from a unique perspective for programmers already familiar with C. To ease understanding, C++ is presented as an extension of C, with frequent comparisons and contrasts to C programming constructs. In addition, the book features an emphasis on object-oriented programming and teaches you how to extend your C programming knowledge to incorporate this cutting-edge methodology. Each chapter includes several major program examples with special "dissections" or structured walk-throughs of the program code. You'll find the exercises based on the example programs are an invaluable component to self-paced or group instruction. No other book offers you a better combinatin of tutorial and reference to C++!

  1. From C to Object-Oriented Programming in C++
    1. Object-Oriented Programming
    2. Why C++ Is a Better C
    3. Why Switch to C++?
    4. References
  2. An Overview of C++ and Object-Oriented Programming
    1. Output
    2. Input
    3. Function Prototypes
    4. Classes and Abstract Types
    5. Overloading
    6. Constructors and Destructors
    7. Object-Oriented Programming and Inheritance
    8. Summary
    9. Exercises
  3. C++ As a Better C
    1. Comment Style
    2. Avoiding the Preprocessor: inline and const
    3. Declarations
    4. The Uses of void
    5. Scope Resolution Operator ::
    6. Function Prototypes
    7. Call-by-Reference and Reference Declarations
    8. Default Arguments
    9. Overloading Functions
    10. Free Store Operators new and delete
    11. Odds and Ends
    12. Summary
    13. Exercises
  4. Classes
    1. The Aggregate Type struct
    2. Structure Pointer Operator
    3. An Example: Stack
    4. Member Functions
    5. Visibility private and public
    6. Classes
    7. static Member
    8. Nested Classes
    9. An Example: Flushing
    10. Summary
    11. Exercises
  5. Constructors and Destructors
    1. Classes with Constructors
    2. Classes with Destructors
    3. An Example: Dynamically Allocated Strings
    4. A Class vect
    5. Members that are Class Types
    6. An Example: A Singly Linked List
    7. Two-Dimensional Arrays
    8. The this Primer
    9. Summary
    10. Exercises
  6. Operator Overloading and Conversions
    1. The Traditional Conversions
    2. ADT Conversions
    3. Overloading and Function Selection
    4. Friend Function
    5. Overloading Operators
    6. Unary Operator Overloading
    7. Binary Operator Overloading
    8. Overloading Assignment and Subscripting Operators
    9. Summary
    10. Exercises
  7. Inheritance
    1. A Derived Class
    2. public, private and protected
    3. A Derived Safe Type Array vect_bnd
    4. Typing Conversions and Visibility
    5. Virtual Functions
    6. An Example: A Class Hierarchy
    7. A Binary Tree Class
    8. Summary
    9. Exercises
  8. Input/Output
    1. The Output Class ostream
    2. Formatted Output form()
    3. User-Defined Types: Output
    4. The Input Class istream
    5. Files
    6. The Functions and Macros in ctype.h
    7. Using Stream States
    8. Summary
    9. Exercises
  9. Advanced Features
    1. Multiple Inheritance
    2. Default Assignment and Other Additions
    3. Standard *.h files
    4. External Linkage
    5. Iterators
    6. An Example: Word Frequency
    7. OOP: Object-Oriented Programming
    8. Summary
    9. Exercises
  • Appendix A: ASCII Character Codes
  • Appendix B: Operator Precedence and Associativity
  • Appendix C. C++ Additions to and Changes from C

Reviews

C++ for C Programmers

Reviewed by Roland Buresund

Disappointing *** (3 out of 10)

Last modified: May 21, 2007, 2:56 a.m.

I tried to learn C++ via this book in ancient times. I didn't succeed. Ignore it.

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

captcha

required