Hi again. I'm here to wreck your world.
Just kidding.
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:
jeanatkin
0
Newbie Poster
Recommended Answers
Jump to Post>I'm here to query you on a doubt I have in dynamic initialization.
…
You sound like less of an idiot when you speak clearly. "I'm here to ask you a question I have about dynamic memory" is much better than trying to sound smart by using uncommon and inappropriate words.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.