Programming help

I need to write a program that reads all the numbers:12 32 43 21 15 45 and displays them on screen and then Extend the program to calculate the average of all the numbers from the file and display the average inthe end. I missed class and now i am really lost
Please Help
Thank You
Reads the numbers from where? A file? keyboard input?
from a file
Have a look at the ifstream class.
http://www.cplusplus.com/reference/fstream/ifstream/
You may find http://www.cplusplus.com/doc/tutorial/files/ useful. I'm sure there are any number of other tutorials on File I/O out there.
Topic archived. No new replies allowed.