DCO20105  Data Structures and Algorithms

Semester A, 2002-3

 

Lab 7 -- C++ programming on templates

Objectives:

 

Pre-Class activities

 

Laboratory Exercise

  1. (5 minutes) Q & A.

  2. (20 minutes) Work out question 3 of Ex.4 except for the handling of the parameter -n.  I.e., you may use the same main program for question 1 of Ex.4 (hw4_1.cp) but include the header file you should create for this question instead of including hw4_1.h.
  3. (25 minutes) Finish the incomplete part of hw4_2.cp for question 2 of Ex.4.


Marking

2 for the program of question 3 of Ex.4.
2 for the program of question 2 of Ex.4.
Marks are awarded according to the completeness and quality of a program/answer.
0 -- absent (without extenuating circumstance) or no participation at all.


Last modified: October 08, 2002