From: Francis Glassborow on
PowerStudent wrote:
> Hello,
> I know, if you want to return an array from a function, you have to
> create it per new[] and after using it you have to delete it with
> delete[].
>
Using new[] at the user level (i.e. when you are not writing low level
library code) is usually a design error. And if the result is that you
have to call delete[] you are even more in the area of low-level coding
techniques. It pays to learn the facilities provided by the language
(such as std::string and std::vector)