having trouble on assignment can anyone help?

so I have a homework assignment that im working on that im having trouble with. I have found someone else doing it on here but they used arrays and we haven't learned that in class yet. What we have to do is we get a data file with two columns in it. One of the student id and the other of the students quiz score. Our job is to process the data file and find the average of each students quiz scores with the highest and the lowest score taken out. I have started it but always run into problems. I wasn't in class for a while because of health problems which is why I'm not understanding now. If anyone could walk me through this that would be great. To start it off all i know for certain is (not much)
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <fstream>
using namespace std;
void main() 
{
   ifstream fin;
	int id, score, baseid;

	fin.open("\\Users\\owen\\Desktop\\Quizzes.dat");
	fin>>id>>score;

If you do expect an unknown number of values in unknown order, then you do need a place to hold them in before you can process.
Topic archived. No new replies allowed.