|
The keyword new is generally used in situations where you don't know until runtime how much memory an object will need. You will find this usually isn't an issue with the std::string class, since it takes care of memory allocation internally. Also, it already has most manipulation functions you can think of, built-in.
|