Posted by William D McQuain on November 30, 2001 at 09:15:25:
In Reply to: Storing Cars posted by John on November 30, 2001 at 01:12:24:
: When storing the cars into an array(street), does it have to be an array of pointers?
More to the point than the previous answer:
When a car is crushed by a Wrecker it is destroyed. You can't deallocate an object dynamically unless it was allocated dynamically, and so you must access it by pointer.
Post a Followup