Delete a word from the given string. Popup a message if the string is empty.
Here is program:
int main() { string str; int delstr; cin >> str; cin >> delstr; str.erase(delstr); if (str == "") { cout << "String empty" << endl; } }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment