Take home part of final

Review for MT - Thursday June 6th.

Chapters 1-7 and appendix D and STL handout. Hw and lecture material.

The exam will be in class and closed book with question similiar to the pre- vious midterm. The exam will last from 10-11:30. Review end of chapter sum- maries. Also review exercises as before and exercises 6.1, 6.4, 6.6, 6.17.

TAKE HOME FINAL QUESTIONS DUE at 10: June 6th.

Question 1.Write one paragraph on what you like and dont like about templates.(no more than 250 words - typed).

Question 2. Code a generic function that swaps the contents of two arrays whose header is

template
void swap_array(T1 x[], T2 y[], int size)
Explain when this will work correctly and when it will fail.

Question 3. Write a function

void eliminate_ws(ifstream& in, ofstream& out)
//place in out non-whitespace characters 
//replace consecutive whitespace characters by a single blank
//after  each 79 characters replace next whitespace character by \n