input and output files and structures helppp please

Dear all,

this program requires an input filename by the user (e.g. input.txt) and outputs the average score to a file

the .txt reads:
Harry 12
John 98
Joe 22

Any tips will be appreciated.
Last edited on
source is an ifstream but it looks like you are trying to use it as an array.
Thanks
Last edited on
Topic archived. No new replies allowed.