I am a beginner level C++ student, so please forgive me if I use the wrong terminology here....I need to create a program that takes a set of integers from a source file, tells whether the numbers are odd or even integers, and then adds the odds and the evens (separately, of course). I'm not looking for the answers to the problem, I just need the answer to the following question, in order to get started....
Question:
How do I take one file and input, say 10 numbers, without having to identify each one as int1, int2, int3, etc.?