Writing a program

Hey I'm kinda new a C++. I have an assignment due tomorrow... and I don't even know how to start. Could someone please help. here is my assignment.

Write a program that counts how many even and odd integers respectively in the input data file,
hw4dataf11.txt
Note:
1. Download hw4dataf11.txt to your local computer.
2. Use file I/O to read the integers from the file. If the data file is saved in your project folder, only
the file name is needed when you declare an ifstream variable, otherwise, a path to the file is
required.
3. Suppose the ifstream variable is input, then use while(!input.eof()) for testing whether the end
of file is reached.


Thanks!!
How about you accept your failure this time?

Also, you posted in the wrong subforum.
I don't even know how to start.


Break it into smaller steps.

1) open the file
2) read the numbers from the file
3) keep track of how many even/odd numbers there are as you're reading them
4) output the result.
5) turn in assignment
6) Get an A+
Topic archived. No new replies allowed.