I was just trying something out and made the following code. ... cin >> plainText reads from the input up to, but excluding, the first whitespace ...
stackoverflow.com