istream has the >> operator, but it skips new lines like it skips whitespace. How can I get a list of all the words in 1 line only, into a vector (or anything else that’s convenient to use)?
istream has the >> operator, but it skips new lines like it skips whitespace.
Share
One possibility (though considerably more verbose than I’d like) is: