Hi again. I'm here to wreck your world.
How's your new year, all of you? Going on swell? Eid Mubarak to all Muslims.
Bypassing the small talk, I'm here to query you on a doubt I have in dynamic initialization.
As I have learnt in school (correct me if I'm wrong), dynamic memory is allocated from a heap or a free memory. I'm running a project code (a C++ simulation), and I require to determine how much free space I already have, and that C++ can use, so that my program can initialize 'creatures' and their 'food', the progress of which I'm charting with a linked list.
I.E. How do I determine how much free space the heap has remaining?
If anyone has the book Turbo C++ Techniques and Applications by Scott Robert Ladd (c. 1991) from which this program is *derived*, it would be even more helpful. Hopefully I'm not asking too much.
I work in Turbo C++, version 3.0, Windows XP (mismatch, yes, I know). Would it help if I paste all 1100 lines of code here? :rolleyes: :D
Thanks for any assistance,
Me. :o :eek: :mrgreen: