Puzzle T30


Triangle Collection Type

Define a struct type triCollection that contains two members: a pointer to an array of triangles and an int that gives the number of elements. Write a constructor and a destructor for the type. Initialize several array elements and print out the collection.

Actually, this is quite a bit of work for one puzzle. It would be OK to skip this one.

Triangle Collection

Answer         Next Page         Previous Page Home