Lecture overview -- Keyboard shortcut: 'u'  Source programs in previous lecture -- Keyboard shortcut: 'p'  Source programs in next lecture -- Keyboard shortcut: 'n'  Course home

Source Programs
Basic facilities

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

Generated: Tuesday March 26, 2013, 13:03:16