I'm in the process of constructing a set of classes for handling linked lists. This is relatively easy to accomplish in C++ as memory can be allocated and freed when adding and releasing nodes to/from a list.
The problem that's worrying me is that if I use the command 'new' to add a node in kBasic, memory is being allocated with each new node. Now, how do I delete a node from the list? If I just assign 'null' to the node address, does the memory associated with this node get released (and any associated data pointers within the class), or am I going to have a problem with memory leakage? Or, have I got my wires totally mixed up!?