Skip to main content
  • Book
  • Aug 2013

Moving from C to C++

Discussing programming problems, why they exist and how C++ solves them

Apress

Authors:

  • Written to give the reader a complete understanding of why C++ is structured the way it is and how to best use its features, you will get a much better understanding than in the usual topic-example approach which lead to high failure rates.
  • The book focuses on getting the basic concepts such as control flow,functions, structures/unions, pointers, enumerations and thepreprocessor, correct.
  • 75k Accesses

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (21 chapters)

  1. Front Matter

    Pages i-xxxiv
  2. Introduction to Objects

    • Arunesh Goyal
    Pages 1-26
  3. Making and Using Objects

    • Arunesh Goyal
    Pages 27-46
  4. The C in C++

    • Arunesh Goyal
    Pages 47-114
  5. Data Abstraction

    • Arunesh Goyal
    Pages 115-136
  6. Hiding the Implementation

    • Arunesh Goyal
    Pages 137-152
  7. Initialization and Cleanup

    • Arunesh Goyal
    Pages 153-168
  8. Function Overloading and Default Arguments

    • Arunesh Goyal
    Pages 169-184
  9. Constants

    • Arunesh Goyal
    Pages 185-208
  10. Inline Functions

    • Arunesh Goyal
    Pages 209-230
  11. Name Control

    • Arunesh Goyal
    Pages 231-258
  12. References and the Copy Constructor

    • Arunesh Goyal
    Pages 259-280
  13. Operator Overloading

    • Arunesh Goyal
    Pages 281-324
  14. Dynamic Object Creation

    • Arunesh Goyal
    Pages 325-348
  15. Inheritance and Composition

    • Arunesh Goyal
    Pages 349-378
  16. Polymorphism and Virtual Functions

    • Arunesh Goyal
    Pages 379-414
  17. Introduction to Templates

    • Arunesh Goyal
    Pages 415-454
  18. Exception Handling

    • Arunesh Goyal
    Pages 455-486
  19. Strings in Depth

    • Arunesh Goyal
    Pages 487-518
  20. iostreams

    • Arunesh Goyal
    Pages 519-574

About this book

The author says it best, "I hope to move you, a little at a time,from understanding C to the point where C++ becomes your mindset". This remarkable book is designed to streamline the process of learning C++ in a way that discusses programming problems, why they exist, and the approach C++ has taken to solve such problems.

"You can't just look at C++ as a collection of features; some of the features make no sense in isolation.  You can only use the sum of the parts if you are thinking about design, not simply coding.  To understand C++, you must understand the problems with C and with programming in general.  This book discusses programming problems, why they are problems, and the approach C++ has taken to solve such problems.  Thus, the set of features that I explain in each chapter will be based on the way that I see a particular type of problem being solved in C++."

Tailor made to treat difficult concepts in a simple and practical way, the book focuses on building a customizable model for the reader which helps in deducing the solution of any puzzle that one might encounter.

The book presents the material one simple step at a time, so the reader can easily digest each concept before moving on. It uses examples that are as simple and as short as possible. This book does not to use any particular vendor’s version of C++ because, for learning the language, the details of a particular implementation are not as important as the language itself.

 

All code in the book was run against the Visual Studio (Microsoft) C++ compiler and Apple's Xcode C++ compiler to ensure accuracy.

About the author

Arunesh Goyal is the honorary director of Institute for Studies in Mathematics & Related Sciences in Computers (ISMRSC) New Delhi.  He has worked as Computer Analyst/Consultant at St. Stephen's Hospital, Delhi for more than 10 years and has extensive programming and systems development experience. Arunesh was also involved with two projects related to intelligent databases with Comtech International Ltd, and the Times of India.

Bibliographic Information