The Note Context in the rightmost column is only shown in case an annotated program exists. - You can navigate to the annotated program via the annotated slide view (= 'the note context').
Illustration of declarations and definitions - everything is fine. | decl-def.cc | Slide context | - | - |
Illustration of declarations and definitions - several problems. | decl-def-problems.cc | Slide context | - | - |
Examles of declarations. | decl-str-1.cc | Slide context | - | - |
Examles of declarations of multiple names. | decl-str-2.cc | Slide context | - | - |
Declarations before statements - C89 Style. | less-localized.cc | Slide context | - | - |
A declaration is a statement in C++. | localized.cc | Slide context | - | - |
A declaration in the condition of an if. | decl-in-if.cc | Slide context | - | - |
Examles constants, pointers to constants, and constant pointers. | const-ptr-1.cc | Slide context | - | - |
Examples of lvalues. | lval-1.cc | Slide context | - | - |
The Knold & Tot example from section 20.3.6 of The C++ Programming Language. | knold-tot.cc | Slide context | - | - |
The Knold & Tot example with char*. | knold-tot-c-like-1.cc | Slide context | - | - |
The Knold & Tot example with char[]. | knold-tot-c-like-2.cc | Slide context | - | - |
The Knold & Tot example with strcpy from <cstring>. | knold-tot-c-like-3.cc | Slide context | - | - |
Illustration of various basic string operations in C++. | string-ex.cc | Slide context | - | - |
C++ References. | ref.cc | Slide context | - | - |
A variable becomes a reference to another variable. | ref-basic.cc | Slide context | - | - |
No operator operates on a reference as such. | ref-basic-2.cc | Slide context | - | - |
A function with reference parameters and reference return type. | ref1.cc | Slide context | - | - |
Convenient references to long/deep fields. | ref-fields.cc | Slide context | - | - |
Const ref scheme. | const-ref-t-1.cc | Slide context | - | - |
A similar program that initializes a user defined struct via a 'functional casting' constructor. | const-ref-t-3.cc | Slide context | - | - |
An envelope around the stdlib div function that returns a struct of quotient and remainder. | ref-div.cc | Slide context | - | - |
A similar setup - illustrates that it is not good to return a reference to a deallocated local variable. | const-ref-t-2.cc | Slide context | - | - |
Two versions of swap - with references and with pointers. | swap.cc | Slide context | - | - |
Exact matches - a trivial example. | overloading-1.cc | Slide context | - | - |
Simple examle of an ambiguity. | overloading-2.cc | Slide context | - | - |
An ambiguity between 'float to int' and 'float to long int'. | overloading-4.cc | Slide context | - | - |
'Float to double' conversion prefered over 'float to int' and 'float to long int'. | overloading-3.cc | Slide context | - | - |
Point.h. | point.h | Slide context | - | - |
double to Point via Point(double) constructor. | overloading-5.cc | Slide context | - | - |
'double to char' instead of 'double to Point'. | overloading-6.cc | Slide context | - | - |
Now in an ambiguity situation. | overloading-7.cc | Slide context | - | - |
A single best match again - slightly surprising perhaps. | overloading-8.cc | Slide context | - | - |
A trivial example with overloading of a function of two parameters. | overloading-9.cc | Slide context | - | - |
A simple vector example - similar to first array program. | vector-1.cc | Slide context | - | - |
Another vector example - constructors, insertion, lexicographic comparison. | vector-2.cc | Slide context | - | - |
Illustration of free store. | new-del.cpp | Slide context | - | - |
Illustration of implicit stream conversion to a boolean value. | copy-is-os.cc | Slide context | - | - |
Output manipulators. | manipulators-1.cc | Slide context | - | - |
Illustration of more manipulators. | manipulators-2.cc | Slide context | - | - |
Illustration of using declarations and using directives. | namespace-1.cc | Slide context | - | - |
Illustrating that a namespace interface is separated from the namespace implementation. | namespace-2.cc | Slide context | - | - |
The header file point.h. | point.h | Slide context | - | - |
The header file tripple.h. | tripple.h | Slide context | - | - |
The header file point.cpp. | point.cpp | Slide context | - | - |
The header file tripple.cpp. | tripple.cpp | Slide context | - | - |
The header file main.cpp. | main.cpp | Slide context | - | - |
Compilation - README. | README | Slide context | - | - |
The C# Point class. | Point.cs | Slide context | - | - |
A C# client class of class Point. | Prog-no-comments.cs | Slide context | - | - |
A C# client class of class Point - with comments that reveal the output. | Prog.cs | Slide context | - | - |
The C++ Point class - a header file. | point.h | Slide context | - | - |
The C++ Point class - the cc file. | point.cc | Slide context | - | - |
The C++ client program with pointers - free store allocation. | prog1.cc | Slide context | - | - |
The C++ client program with pointers - stack allocation. | prog1a.cc | Slide context | - | - |
The C++ client program with references. | prog2.cc | Slide context | - | - |
The C++ client program with Point value semantics. | prog3.cc | Slide context | - | - |
Generated: Tuesday March 26, 2013, 13:03:16