Hi and thanks beforehand for your help.
First of all, this is for a homework, but I've done almost everything I need. We were asked to implement a linked list class, do some adding and deleting on it, and calculate it's memory usage.
I have the lists done, and the adding and deleting (from a text file). All of that is done. However, I'm stuck on calculating the memory usage.
I've been looking for an easy way to do this, and I haven't found anything. What I actually need is some method that will return the amount of dynamic memory in use. That's all. I've found several tools to find memory leaks, but I think they are just over the top, for what I need.
I also found a method to find the amount of memory a process uses, but I don't need that either. I just need to find out the total amount of memory used, like in the Task Manager.
I'm using Virtual Studio on Windows 7. Thanks for your help!!
EDIT
Here is exactly what the teacher asked us to do (translated from spanish):
"Every time the loading operation (from the text file, unrelated) is realized, the program should display how much memory is available in the Heap (memory for allocating), and how much is available before the loading of the file."