I am extremely new to programming and I am having a ton of trouble! I made this program to read in a external file called grades....

3313 90 42 58 64 70 75 100
5688 88 48 79 70 79 70 94
4700 50 44 89 73 70 73 100
9561 88 69 88 87 84 63 98
3199 96 69 100 90 88 67 100
3768 78 57 80 59 57 15 60
8291 72 56 70 82 74 9 83
7754 76 62 93 100 78 41 58
8146 94 68 99 94 93 9 54
2106 98 47 96 94 70 27 100

And then give a ID number, average grade, and corresponding grade from with,above, or below 10 points of the class average and asign "satisfactroy, outstanding, or unsatisfactory". This is way above my programming skills.
However, I am sure that I have two main problems. How do I call each column from the grades.txt and assign it to a function? Also, how do I give the corresponding grade? I know there is a problem with "if (mean < mean + 10)" and the other 2 alike, but what should take its place?

Code:
```// File: stugrades.cpp
// Computes a external file and compiles it into a table with 3 columns of ID numbers, scores, and corresponding scores.
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cmath>
using namespace std;
float score[],
int id[],
int count,
bool tooMany);
int main()
{
ifstream myfile ("Grades.txt"); // Input from external file
int id[0]; // the ID of students
float score[1, 2, 3, 4, 5, 6];
float mean; // average of individuals scores
int count;
int tooMany;

if (myfile.is_open())
{
while ( myfile.good() )
{
if (mean > mean + 10)
{
}
else if (mean < mean - 10)
{
}
else
{
}
mean = (score++ / count);
void printTable(int score[1, 2, 3, 4, 5, 6], int id[0], int count);
myfile >> id >> score >> endl;
cout << id << " " << mean << " " << grade << " " << endl;

}
myfile.close();
}
else cout << "Unable to open file";
return 0;

}```

Last edited by shabbir; 27Apr2012 at 07:16.. Reason: Code blocks