Computer Algorithms II Class Notes

Computer Algorithms II Lecture Notes

13 September 2007 • Dynamic Storage Management


Because node is being used as the type of an array element, it needs to support a default constructor. It is in node's constructor that free would be set:

node::node() : free(true) { }

However, the practical effect of initializing an array of nodes is equivalent to a for-loop through the array.


This page last modified on 24 January 2006.