my input is in the following format:
<year><TAB><win ner><tab><score ><tab><runner-up><tab><score> <newline>
where year and scores are all intergers and the Winner and Runner-UP are just strings. The problem is both strings may or may not contain spaces.
I need to write the programming in C++ to intake this data, and then place it into either 4 arrays or 2 parralel two dimensional arrays (year,winner/loser). I'm having trouble reading the input correctly.
<year><TAB><win ner><tab><score ><tab><runner-up><tab><score> <newline>
where year and scores are all intergers and the Winner and Runner-UP are just strings. The problem is both strings may or may not contain spaces.
I need to write the programming in C++ to intake this data, and then place it into either 4 arrays or 2 parralel two dimensional arrays (year,winner/loser). I'm having trouble reading the input correctly.
Comment