I know how to input a text and skip white spaces, but how about when it’s a string? During the code I get a string with something like
asdasd asdads asdasd asdasd
and so I need to remove all space in it. So is there some kind of way to write skipws(string_text);?
If you want to construct a string with the value
asdasdasdadsasdasdasdasd, you can use the remove-erase idiom:or using
::isspacefrom<ctype.h>,