Search This Blog

Sunday, 23 August 2020

Erase tool , in cpp


 #include<iostream>

using namespace std;

int main()

{

string str="good mornining";

cout<<"string is:"<<str<<endl;

str.erase(6);

cout<<"string after the earrase():  "<<str<<endl;

return 0;

}






No comments:

Post a Comment

Search This Blog

Contact Form

Name

Email *

Message *

Popular Posts