OK, so my next question would be: would implementing the linked list without this encapsulation(the 'node' struct) be less efficient in terms of memory usage or even performance?
Thanks laserlight...
Type: Posts; User: reversaflex
OK, so my next question would be: would implementing the linked list without this encapsulation(the 'node' struct) be less efficient in terms of memory usage or even performance?
Thanks laserlight...
Hi, I've found this example of a linked list on the web:
http://www.dreamincode.net/code/snippet82.htm
..and my question is this: in the example the author has a structure within the class...
Hi all,
I have a struct which contains not only basic data but other structs as well, some of which are large, I allocate my main struct the normal way and free it but I notice that it will crash...
Thanks for the quick replies... I understand whats going on now and am no longer paranoid that I'm not freeing mem properly ;)
JDGATX I guess you got what I think is the desired behaviour, thanks...
When I allocate mem for a struct pointer then free it, should I be able to still access data inside it after the call to free()? How can I tell for sure that I'm free'ing it properly?
Here's a...
Hello all,
My program reads a large sequence of image files from the hard drive and processes them... it's working but after a certain amount of image reads the hard disk starts chugging away and...