Book description
This book begins by explaining key concepts in programming, and elaborates on characteristic of class, including inheritance, derivation and polymorphism. It also introduces generic programming and Standard Template Library, I/O Stream Library and Exception Handling. The concepts and methods are illustrated via examples step by step, making the book an essential reading for beginners to C++ programming.
Table of contents
- Cover
- Title Page
- Copyright
- Preface
- Contents
- 1 Introduction
- 2 Elementary C++ Programming
- 3 Functions
- 4 Class and Object
- 5 Data Sharing and Protecting
-
6 Arrays, Pointers, and Strings
- 6.1 Arrays
-
6.2 Pointers
- 6.2.1 Access Method of Memory Space
- 6.2.2 Declaration of Pointer Variables
- 6.2.3 Operations Related to Addresses – ‘*’ and ‘&’
- 6.2.4 Assignment of Pointers
- 6.2.5 Pointer Operations
- 6.2.6 Using Pointers to Process Array Elements
- 6.2.7 Pointer Arrays
- 6.2.8 Using Pointers as Function Parameters
- 6.2.9 Pointer-Type Functions
- 6.2.10 Pointers that Point to Functions
- 6.2.11 Object Pointers
- 6.3 Dynamic Memory Allocation
- 6.4 Deep Copy and Shallow Copy
- 6.5 Strings
- 6.6 Program Example – Personnel Information Management Program
- 6.7 Summary
- Exercises
-
7 Inheritance and Derivation
- 7.1 Inheritance and Derivation of Class
- 7.2 Access Control
- 7.3 Type Compatible Rule
- 7.4 Constructor and Destructor of Derived Class
- 7.5 Identification and Access of Derived-Class Member
- 7.6 Program Example: Solving Linear Equations using Gaussian Elimination Method
- 7.7 Program Example: Personnel Information Management Program
- 7.8 Summary
- Exercises
-
8 Polymorphism
- 8.1 An Overview of Polymorphism
- 8.2 Operator Overload
- 8.3 Virtual Function
- 8.4 Abstract Classes
- 8.5 Program Instance: Variable Stepwise Trapezoid Method to Calculate Functional Definite Integral
- 8.6 Program Instance: Improvement on Staff Information Management System for a Small Corporation
- 8.7 Summary
- Exercises
- 9 Collections and Their Organization
- 10 Generic Programming and the Standard Template Library
- 11 The I/O Stream Library and Input/Output
-
12 Exception Handling
- 12.1 Basic Concepts of Exception Handling
- 12.2 The Implementation of Exception Handling in C++
- 12.3 Destruction and Construction in Exception Handling
- 12.4 Exception Handling of Standard Library
- 12.5 Program Example Improvement to Personal Information Administration Program in a Small Company
- 12.6 Summary
- Exercises
- Index
Product information
- Title: C++ Programming
- Author(s):
- Release date: February 2019
- Publisher(s): De Gruyter
- ISBN: 9783110470666
You might also like
book
Mastering C++ Programming
Take your C++ coding to the next level by leveraging the latest features and advanced techniques …
video
Multi-Paradigm Programming with Modern C++
C++ is a multi-paradigm language that lets you solve a problem in different ways, and this …
book
C++ Software Design
Good software design is essential for the success of your project, but designing software is hard …
book
Advanced C++
Become an expert at C++ by learning all the key C++ concepts and working through interesting …