1. ## Help with finding the highest average grade

Code:
```#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
const int numberOfstudents = 8;
double total;
double average;

string name[numberOfstudents] = {"Isabel", "Steve", "Michael",
"James", "Jennifer", "Billy",
"Brenda", "Jesus"};
{99,76,68},
{89,70,85},
{80,75,71},
{78,77,93},
{93,91,89},
{82,95,71},
{98,82,84}};

cout << "------------" << setw(14) << "-------\n";

for (int student = 0; student < numberOfgrades; student ++)
{
total = 0;

for (int col = 0; col < numberOfgrades; col++)
cout << setw(9) << left << name[student];
cout << fixed << showpoint << setprecision(2);
cout << setw(14) << right << average << endl;
}

double row;
double highestAverage = 0;
double topStudent;

for( row = 1; row < numberOfstudents ; row++)
{
{
topStudent = row;
}
}
{
cout <<"\nThe student with the highest average grade is "
<< name[topStudent] <<" and the average is " << grades[topStudent] << endl;
}
return 0;
}```
This is the code i have so far but i keep getting errors. I need help finding the highest average grade.
This is the error i get error C2108: subscript is not of integral type.
Sorry for not posting it earlier.

2. In the following snippet:
Code:
```    double grades[numberOfstudents][numberOfgrades] = {{92,95,94},
You have defined grades as a two dimensional array in the first line, but you try to access this array as a single dimensional array in the second line. You are doing this in several places.

Also in future when you have compiler errors, post the complete error messages exactly as they appear in your development environment, along with the code that generated these errors.

Jim

3. The type of i in "Array[i]" must be of integer type (long and char will work; double/float will not work).

Code:
`double row;`
Tim S.

4. i have fix a little bit but now it gives me the highest grade instead of the highest average

Code:
```	double highestAverage = grades[numberOfstudents][numberOfgrades];
for(int i = 0; i < numberOfstudents; i++)
{
for(int j = 0; j < numberOfgrades; j++)
{