jeudi 29 juin 2017

Remove last char in stringstream?

For example, the stringstream contains "abc\n", I want to remove the last char '\n'.

I know it can be done by using 'str' first.

But could it be done without stringstream::str()?

Aucun commentaire:

Enregistrer un commentaire