I think you are right. The "delete" is used to release any storage that is allocated with "new", that is the object on the heap. The "delete []" is used to delete an arrary of objects on the heap.
Type: Posts; User: corn
I think you are right. The "delete" is used to release any storage that is allocated with "new", that is the object on the heap. The "delete []" is used to delete an arrary of objects on the heap.
Thanks.
All of your suggestions are helpful.
adrianxw:
Yes, it is a easy way to modify value using "Class.x = 5;". However, the problem is that I don't know the name of these attributes when I modify them.
Suppose there are a class like...
But I need to directly access each attribute of the complex types and modify the values of them. So I must know the address of each attribute before I modify it. How can I determine whether the word...
Really? But in some documents I find it is computer system dependent. Could you please recommend some documents or information about it? Thanks.