Let's assume that I have the following input
8 2 I slept long
8 3 5 Students didn't do well
9 1 What should I do? seriously
9 5 I have no idea what to do from now on
stored in wow.txt.
I wanted to take two integers and the string separately for each line (so for the first line, I take in 8, 2, and then I slept long string as inputs and move onto next line, and for the second line, I take in 8 and 3 as integers then 5 Students didn't do well as a string and so on), but I don't know how to do so.
If I use getline, then I would take the entire line as input, and I was wondering if there's a way of taking the first couple of inputs and the rest of the line separately.
Any help would be greatly appreciated.