Converting string to ASCII

cin >> plainText reads from the input up to, but excluding, the first whitespace character. You probably want std::getline(cin, plainText) instead.

References:

Leave a Comment