I am currently working on my C++ assignment and i have a question
The user of this program will input a text which contains many English word separated by spacing and line break. The program will count the word appearing in the text. I got most of the job done except the beginning part.
I use getline to get the input and stored it into t.
if the text is only one line, the program can run smoothly. But if the text contains line break, it can only read the first line.