Help! Please!

I need help with this code i am getting a 'while' error and '{' missing function header. How can i fix this?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <iostream>
#include <fstream>
#include <string>


using namespace std;
int main()
{
void computeAverage(ifstream& in, ofstream& out);
using namespace std;
ifstream fin;
ofstream fout;

fin.open("scores.txt");

fout.open("scores.txt");

computeAverage(fin, fout);
fin.close();

return 0;
}

void computeAverage(ifstream& in, ofstream& out);

	string(name);
	int score,
	totalScore = 0;
	double avg;

	while (! in.eof());
	{
		in >> name;
		out << name << " ";
		in >> name;
		out << name << " ";

		for(int count = 1; count <= 10; count++)
			{
				in >> score;
				out << score << " ";
				total += score
			}
			avg = total/10.0
				out << avg << endl;
	}
There is incorret function definition

Instead of

1
2
3
void computeAverage(ifstream& in, ofstream& out);

	string(name);


there possibly should be

1
2
3
void computeAverage(ifstream& in, ofstream& out)
{
	string(name);
Topic archived. No new replies allowed.