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

Source Programs
From C to C++

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').

C Program with an array.array-1.cSlide context--
C++ preview: Similar program with vectors - variation 1.vector-0b.ccSlide context--
C++ preview: Similar program with vectors - variation 2.vector-0a.ccSlide context--
C++ preview: Similar program with vectors - variation 3.vector-0c.ccSlide context--
A similar C program with pointers and dynamic allocation of memory - one dimensional.array-1-ptr.cSlide context--
C Program with two a dimensional array.array-2.cSlide context--
A similar C program with pointers - two dimiensional.array-2-ptr.cSlide context--
Illustration of array limitations in C: Cannot assign.array-limitations-1.cSlide context--
A solution: Copy the array in a for loop.array-limitations-1-with-for.cSlide context--
A solution: Copy the array with memcpy - a low-level alternative.array-limitations-1-memcpy.cSlide context--
Illustration of array limitations in C: Cannot pass as value parameter.array-limitations-2.cSlide context--
Less confusing version that uses pointers.array-limitations-3.cSlide context--
C program with a couple of structs.struct-1.cSlide context--
A move_person function with structs parameters - does not work.struct-2.cSlide context--
A move_person function with structs parameters - now better.struct-3.cSlide context--
A program that illustrates a struct with bit fields.bit-field-ex.cSlide context--
C program with function pointer.func-1.cSlide context--
Same program - without explicit use of the address and dereferencing operators.func-2.cSlide context--
Same program - using a typedef to capture the function type.func-3.cSlide context--
A program with a for loop in C.for-c.cSlide context--
Illustration of local variables in a for loop in C++.for.ccSlide context--
A C program with a swap function.swap.cSlide context--
C++ Preview: A similar C++ program with a swap function - uses references.swap-similar-cpp.ccSlide context--

Generated: Tuesday August 1, 2017, 13:24:56