If I got a string and I would like to chop of the first 5 characters and store these in a string of their own. How would I do that?
If I got a string and I would like to chop of the first 5 characters and store these in a string of their own. How would I do that?
Take a look at the substr() member function of std::string.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Btw. if I include cctype do I then also need to declare it like "using ..........." Like in "using namespace std;"? Or is this not needed?
Everything in <cctype> is in the std:: namespace.