jeudi 31 octobre 2019

How to remove the Apostrophe at the from and the back from a string with c++

I ran into a little trouble with removing the first and last apostrophe from string. I have a vector of string and some of them have apostrophe either at from or back of string. For example, I have {'cause, 'til, holdin', don't} I want output like this {cause, til, holdin, don't} How do I do this?

Aucun commentaire:

Enregistrer un commentaire