ive been trying to find some info on this shallow/deep copying that i heard about.. but i can't seem to find it.
What is the difference between the two, and is this applicable only to linked lists?
Raz
Printable View
ive been trying to find some info on this shallow/deep copying that i heard about.. but i can't seem to find it.
What is the difference between the two, and is this applicable only to linked lists?
Raz
A deep copy is all elements or nodes have their own separate and posibly Identical data. A shallow copy no elements or nodes are duplicated just pointed to for multiple copies.
so i have a driver using linked lists and doin shallow copying...
but how do i overload the assignment operator so it will use deep copying when it assigns a linked list to another linked list?
Raz