There are several reasons why you might need to create your own class of strings, for example, you can create an immutable string class with functions optimized for creating new derived strings, rather than modifying existing strings, as they can sometimes play better with multi-threaded code. However, this is certainly not what you will need to do if you are reading a beginner's book and probably should be reviewed at least three times.
As people said, std :: string is what you need to use for 99.9% of things.
source
share