CPSC 221H-200: Data Structures & Algorithms
Lab Exercise #4
Spring 2009


  1. Create a class called Point with two private data members (x,y), a public print function, and constructors.
  2. Create an array of 10 Points on the stack, initialize them with non-zero data, and print them.
  3. Create an array of 10 Points on the heap, initialize them with non-zero data, and print them.
  4. Loop through the array on the heap using Pointer Arithmetic and print them.