Recursion and gdb Lab

Tom Kelliher, CS23

Feb. 24, 1997

Collect programming assignment.

Next time we begin ADTs.

Outline:

  1. Discussion of lab program.

  2. Lab.

Recursive MaxArray()

  1. What this program does.

  2. Again, multiple source files.

  3. A dynamically-sized array.

  4. delete [] data:
    int *a, *b;
    
    a = new int;
    b = new int[5];
    
    delete a;
    delete [] b;
    

  5. Two ways of using #include.

  6. #ifdef, #else, etc.

  7. The two versions of MaxArray().

  8. assert()



Thomas P. Kelliher
Sat Feb 22 12:23:03 EST 1997
Tom Kelliher