Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eddietr

macrumors 6502a
Oct 29, 2006
807
0
Virginia
Well..it's not really an assignment (yet!!) but the purpose was to show how pointers can be used to iterate through an array ( as Steve's note indicates). From the text it was clear that the idea of fractPtr was to point to an **array** of fraction objects and **not** to the objects themselves. Besides, the real crux if one does not point to the array is how does one then iterate the array. Hope that helps.

Makes sense. So
Code:
Fraction **fractPtr
sounds like the way to go.

There are other ways to iterate through the array, but I see the point of the exercise. It's a good concept to understand.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.