Neil Davidson wrote:
> Hi,
>
> > Try allocating the array like this:
> >
> > Film* filmArray = new Film[Max_Film_Num];
> >
> > Don't forget to explicitly delete the array as well...
>
> Sorry to be such an annoying newbie, but how do I explicitly delete it?
>
> And how do I "dynamically allocate" room for the name etc fields, rather
> than declare char name[50] for example?
>
> Many thanks (again),
I didn't see an answer on the forum for this so here goes.
You explicitly delete by using "delete[] filmArray".
May I suggest that you buy a good book on C++ such as Stroustrup's C++
Programming Language. :-) Another good one C++ FAQs by Cline & Lomow. Of
course, there are probably countless other good sources too...
Regards,
--
Christopher Hunt
Class Action Pty. Ltd.
Are you a time zone traveler that owns a Palm(tm) connected organizer?
Check out http://www.classactionpl.com/TimeTraveler/index.htm