I have two structures:
struct W1 {int v1;...};
struct W2 {
W1 my_w1;
.....
};
As you can see W2 has a W1 inner member.
I have some functions to do the work :; (pseudo code)
do
Create the instance my_w2 = new w2;
general code to do some things.
delete my_w2;
loop
I have discover that when delete my_w2 keeps my_w1 information ????
How can I delete my_w2 effectively ? What I'm doing bad ?
Also... Is there a way to reset (empty) an object ? (or have I to delete it ?)
Thanks




Reply With Quote
Bookmarks