Full Description
This book introduces the art of programming in C++. The topics covered range from simple C++ programmes to programme features such as classes, templates, and namespaces. Emphasis is placed on developing a good programming technique and demonstrating when and how to use the advanced features of C++. This revised and extended second edition includes: the Standard Template Library (STL), a major addition to the ANSI C++ standard; full coverage of all the major topics of C++, such as templates; and practical tools developed for object-oriented computer graphics programming. All code program files and exercises are ANSI C++ compatible and have been compiled on both Borland C++ v5.5 and GNU/Linux g++ v2.91 compilers. They are available from the author's web site.
Contents
1 Overview.- 2 The Development Environment.- 3 Getting Started.- 4 Fundamental Data Types, Declarations, Definitions and Expressions.- 5 Making Decisions and Repetition.- 6 Functions.- 7 Arrays.- 8 Structures, Unions, Enumerations and Typedefs.- 9 The C++ Class.- 10 Operators and Overloading.- 11 Friends.- 12 Pointers.- 13 Templates.- 14 Exception Handling.- 15 Inheritance.- 16 Run-Time Type Information and Casting.- 17 Input and Output, Files and Streams.- 18 The Preprocessor.- 19 Namespaces.- 20 The Standard Template Library.- Conclusion.- Appendices.- References.