Course Lab (subject to adjustments)

Last revised on: 18/9/03 1:40 PM

Session One

Session Two: template example- array.h, array.cpp, arraytest.cpp

Session Three - Four

    modular,separate compilation, Make files gcc g++

    link list example using templates list.h listnode.h ListTest.cpp

    link list example without list.h listnode.h ListTest.cpp

    Extra matrials

        deleting from a linked list

       linked list simple link list example

Session Five: homework discussion

Session Six: File Input/Output in C++

Session Seven: binary tree

Session Eight: heap, STL Introduction

Session Nine: Debuging(with gdb) inside Emacs sum1.cpp avg1.cpp numdata

Session Twelve: Inheritance