No, it should be:Quote:
Originally Posted by Secured
If you want the using directive, then write:Code:std::string cup;
.
.
.
cup.erase( 0, cup.length() );
Incidentally, there is a shortcut for this, i.e.,Code:using namespace std;
string cup;
Code:cup.clear();