Week14

This week we first covered built-in arrays and matrices. We then looked at templated functions. We also covered global variables and scope of variables.

We also started talking about recursion and gave few examples. We compared the performance of recursive solutions to iterative solutions. We will continue with pointers next week, which will be the end of our semester.

Powerpoint files

scoperecursiontemplates

C++ codes discussed in class (some of them might have been modified in class to show extra features)

globaldemo_cpp

scope_cpp

printreversed_cpp

facttest_cpp

fibtest_cpp

bsearchrec_cpp

Tapestry source codes to use tvector and tmatrix classes

tvector.h

tvector_cpp

tmatrix.h

tmatrix_cpp