Next:
Contents
Contents
LIX, É
COLE
P
OLYTECHNIQUE
C++ Notes
Leo Liberti
Last update: 12 January 2008
Contents
Introduction
Generalities
Definitions
Data
Memory
The operating system
Program execution
The Unix shell
Basic C++
Types, objects, variables and pointers
Preprocessing directives
Statements
Memory allocation
Bugs
C++ Syntax
Declarations, assignments, tests, arithmetic/logical operations
Loops
Functions
Argument passing
Overloading
Pointers
Warnings
Human-side C++ syntax
Indentation
Comments
Structure of a C++ program
The building process
Compilation and linking
File types
Object files
Debuggers
Packaging and distribution
Classes
Basic class semantics
Classes: motivations
The class concept
Objects of a class
Referring to the current object
Constructors and destructors
Lifetime of an object
Data access privileges
Namespaces
Exceptions
Overloading operators in and out of classes
The stack and the heap
User-defined memory allocation
Using object pointers
Input and output
Streams
Object onto streams
Overloading the
<<
and
>>
operators
Inheritance and polymorphism
Inheritance
Nested inheritance
Hiding
Nested inheritance and hiding
Inheritance vs. embedding
Polymorphism
Pure virtual classes
Pure virtual classes
Templates
User-defined templates
Templates
Internals and warnings
Standard Template Library
The STL
vector
example
map
example
About this document ...
Leo Liberti 2008-01-12