I have to read in each line individually with cin.get() then convert the char to an int. The problem is, I don't know how to discard the newline character and get the number 9 after the number 7.
I need to get the first two lines, add them together in an array, then output that result. Then, I need to get the next two numbers in the file, add them together, and output the result and so on. I'm not sure how to ignore the newline and get the next numbers in the file. I'm kind of lost, what would be the best way to do this? Thanks if you can help.