C++ String Edit Function

Hello everyone :D,

I am making a console app in Dev C++ and I was wondering if there is a function that can edit a string by inserting a space after a full stop. For example:

hello.everyone. goes to hello. everyone. (with space after dot)

I would appreciate any help :)

Thanks,

Muhasaresa



Last edited on
Try something like this:

1
2
string word = "hello.everyone.";
word += ' ';
Last edited on
Thanks for the help , but can this operation be done after each full stop within the string?

Thanks,

Muhasaresa
Topic archived. No new replies allowed.