Mastering C++ Programming
The main aim of this book is to help you to learn the fundamental
constructs of the C++ language. It is organised as follows:
This book introduces the reader to the fundamental constructs of C++ and provides a gentle introduction to the ideas of object-oriented programming. It is an advantage to have some previous knowledge and experience of other programming language, such as Pascal or C. Languages such as Pascal, C and C++ are constructed out of a number of basic control structures (sequence, se-lection and iteration) and use well-defined blocks of code which perform par-ticular tasks (procedures and functions in Pascal; functions in C and C++). In addition these languages require some basic data types and allow the creation of user-defined data types. For example, in Pascal the fundamental types are integer, real, char, Boolean and, in some implementations, string. In C and C++ we have int, float and char. Type qualifiers (short, long, signed and unsigned) in C and C++ provide extensions to the basic data types. Further extensions are introduced through the use of arrays to provide collections of a particular data type (in all three languages) and then through the use of record in Pascal, struct (and typedef) in C and C++ and through the use of class in C++ to allow for more complex user-defined data types. The C++ language grew out of C (hence its name) and so is based on a functional approach to programming. In such languages a problem is broken down into modules, which perform a particular well-defined task. Each module is then created through a design process consisting of stages such as description, outline design, detail design, coding and testing. C++ can be thought of as an extension to C by, for example, introducing function and operator overloading or providing better ways of implementing abstract data types. However, it can also be thought of as a completely new language which allows for the use of a new approach to software design.
Paperback - 352 pages (August 1998)