0
hi,
nice Idea.
I would like to discuss your code item by item.
first: how about an other approach to get the result.
just print it word by word and skipping the one you want to cut.
can you rewrite your code to do that?
if you want the final string, no problem, you can also copy it afterwards. but you do not need an extra loop.
less code is faster and less error prone :)
afterwards we can discuss to use c++ functions to help with that :)