Lecture 03-2

Heap allocation of arrays.

Part 01. Intro and Feedback
Part 02. Solution for stats.cc
Part 03. Solution for car and cmpx
Part 04. The appendInto Procedure
Part 05. Heap Allocation
Part 06. append Version 1
Part 07. append Version 2
Part 08. Heap Animation
Part 09. Summary

Sample C programs

Solutions to Lab 03. There is also a Makefile.
• stats.cc
• car.cc
• cmpx.cc

Appending into a third array.
• appendInto.cc

Heap-allocated arrays.
• stats-heap.cc
• appendInto-heap.cc

Heap-allocated append with helper functions.
• append.cc
• append_instrumented.cc