Why do I need to call new? [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: When to use “new” and when not to, in C++? When should I use the new keyword in C++? It seems like I could program something without ever using the word new , and I would never have to worry about deleting anything either, so why should I ever call it? From what I understand, it's because I would run out of stack memory. Is this correct? I guess my main question is, when should I call new ? 回答1: It's a matter