Ok, so this is where it gets hard, so.. I have a question. I thought of an example about new and delete about the heap. Someone tell me if it’s correct. I have 3 classes, bow, sword, and gun. All of these are new integers(?). I choose one, and it deletes the others because I don’t need to use it. Is this correct?
10/21/2019 6:41:51 PM
Jake2 Answers
New AnswerJake Sorry to say but i think you are totally confused about classes, objects and integers and about new and delete. Can you show the code about what you are trying to do?
Im not really trying to do anything, Im just trying to understand dynamic memory in an easier way I understand
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message