View Single Post
Old Mar 10th, 2006, 3:08 AM   #8
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
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.
Cache is offline   Reply With Quote