Table of contentsHistory of C++ Major Features of C++ Hello, world! Basic I/O Conventions Example Declarations Basic types Enumerations Pointers References More on References Statements in C++ Comments Expressions Functions More on Overloading More on Overloading Default Arguments Unspecified Number of Arguments Macros Classes Example of a Class Data members Note on structs Member functions More on Levels of Access Tag Names Member Function Bodies Example of Member Functions Defining Member Function Outside Calling Member Functions Mutable data members Derived Classes Manual derivation Using a Derived Class Virtual Functions Abstract Classes Constructors and Destructors Friends Multiple Inheritance Using Multiple Inheritance MI sounds nice but .... ... Replicated Base Clauses Disambiguating Virtual Base Classes What to do if no MI: Mixins OO Programming C++ vs Ada OO Programming Ada vs C++ The Name Space Problem (C) The Name Space Problem (C++) A Solution for C++ Namespaces, an Example Using a Namespace The Using-Declaration Comparison with Ada Child Units in Ada More on Child Units in Ada Exceptions in C++ Throwing an Exception Catching an Exception Rethrow Derived Exceptions Exceptions: Comparison with Ada Generic Programming Templates in C++ More on String Template More on Templates Error Checking Function Templates Composition of Templates Ada Generics vs C++ Templates Ada Generics vs C++ Templates The Standard Template Library |
Author: Robert Dewar E-mail: dewar@gnat.com |