Re: Storing Cars


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

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.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]