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 | - | - |
More examples of declarations. | decl-str-3.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 | - | - |
Examples of lvalues. | lval-1.cc | Slide context | - | - |
Examples of rvalues. | rval-1.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 typical use of references: A number of results passed back from vector_min_max via references. | min-max.cc | Slide context | - | - |
A function that attempts to return references to local variables. | ref1-bad.cc | Slide context | - | - |
Ditto - handling the problem by making the local variable static. | ref1-better.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 | - | - |
The initialization of const reference var from rvalue, with type conversion. | const-ref-int.cc | Slide context | - | - |
A similar program that initializes a user defined struct via a 'functional casting' constructor. | const-ref-t-3.cc | Slide context | - | - |
Use of a const reference in the vector_min_max function (alread encountered in this lecture). | min-max-1.cc | Slide context | - | - |
Illustrates that it is not good to return a const 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 | - | - |
Illustration of Rvalue references - in contrast to other kinds of references. | rval-1.cc | Slide context | - | - |
The compilable parts of the program from above. | rval-1-compilable.cc | Slide context | - | - |
Two versions of swap - with Lvalue references and Rvalue references. | swap1.cc | Slide context | - | - |
Sample use of auto in C++11. | auto2.cc | Slide context | - | - |
Same - without std:: - with using namespace std. | auto3.cc | Slide context | - | - |
Same - illustrates deduction of a functions return type in C++14. | auto4.cc | Slide context | - | - |
Trivial uses of decltype. | dt1.cc | Slide context | - | - |
A sample use of decltype in a function template: matrix plus. | dt2.cc | Slide context | - | - |
Another sample use of decltype in a function template: container example. | dt3.cc | Slide context | - | - |
Four forms of initialization. | forms.cc | Slide context | - | - |
Default initialization. | init2.cc | Slide context | - | - |
Initialization and narrowing. | init1.cc | Slide context | - | - |
Initialization and auto - problems. | init3a.cc | Slide context | - | - |
Initialization and auto - OK. | init3b.cc | Slide context | - | - |
Initialization - ambiguities. | init4.cc | Slide context | - | - |
Examles constants, pointers to constants, and constant pointers. | const-ptr-1.cc | Slide context | - | - |
Only the valid parts of the program from above - compiles. | const-ptr-1-valid-feb-14.cc | Slide context | - | - |
point.h - just for reference. | point.h | Slide context | - | - |
point.cc - just for reference. | point.cc | 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 | - | - |
Generated: Tuesday August 1, 2017, 13:25:55