Errors and don't know why

Hello,
I am new at C++ and I been learning how to use C++ a couple of weeks now and it hasn't given me any problems. However, I been working on this program for a days now and I can't figure out what the problem is so if somebody could please me I will really appreciate it. Please I need response quickly because tomorrow I need to turn this project in.

#include<iostream>
#include<iomanip>
using namespace std;

int getStudentCount()
{
int studentCount;

cout << "Enter the number of students: " << endl;
cin >> studentCount;
return studentCount;
}
void getExamScores(float examScores[], int studentCount)
{
int eScores;

cout << "Please enter the exam scores of the students" << endl;

for (eScores=0; eScores<studentCount; eScores++)
{
cin >> examScores[eScores];
cout << endl;
}
}
void getLabScores (float labScores [], int studentCount)
{
int lScores;

cout << "Please enter the Lab scores of the students" << endl;

for (lScores=0; lScores<studentCount; lScores++)
{
cin >> labScores[lScores];
cout << endl;
return;
}
}
void calculatePointGrades (float grades[], const float examScores[], const float labScores[], int nGrades, int studentCount)
{
int sum=0;
int grade=0;
int pointGrade=0;
for (sum= 0; sum<= studentCount; sum++)
{ sum= labScores[] + examScores[];
pointGrade= sum/2;
cin >> grades[grade];
cout << endl;
}
return;
}
void calculateLetterGrades (const float pointGrades [], char letterGrades[], int nStudents)
{
char A,B,C,D,F;
int grades;
pointGrades[grades];

if(grades>=90)
cout << 'A';
else if(grades>=80)
cout<<'B';
else if(grades>=70)
cout<<'C';
else if(grades>=60)
cout<<'D';
else
cout << 'F' << endl;

cin>>letterGrades[grades];
}
float getGradesAverage(const float scores[], int studentCount)
{
int eScores=0;
int lScores=0;
int sum=0;
int ave=0;
for (sum= 0; sum<= studentCount; sum++)
{
sum= sum + scores[eScores] + scores[lScores];
ave= sum/studentCount;
}
}
void showGradeData (const float examScores[], const float labScores[], const float pointGrades[], const char letterGrades[], int studentCount)
{
int eScores, lScores, grades;
cout<<examScores[eScores]<<labScores[lScores]<<letterGrades[grades]<<pointGrades[grades];
cout << endl;
}
void main (void)
{
const int MAX_NUM_STUDENTS=5;

int studentCount;
float examScores[MAX_NUM_STUDENTS], labScores[MAX_NUM_STUDENTS], pointGrades[MAX_NUM_STUDENTS];
char letterGrades[MAX_NUM_STUDENTS];

studentCount= getStudentCount(); //Ask user to enter number of students from keyboard

getExamScores(examScores[eScores], studentCount); //Get from the keyboard
getLabScores(labScores[lScores], studentCount); // Get from the keyboard

calculatePointGrades(pointGrades[grades], examScores[eScores], labScores[lScores], studentCount); //Calculated
calculateLetterGrades(pointGrades[grades], letterGrades[grades], studentCount); //Calculated

showGradeData(examScores[eScores],labScores[lScores],pointGrades[grades],letterGrades[grades],studentCount); //Display results on Screen And calc averages

cout << "\n\n";
cin.ignore(2);
}

I get the following errors....

(44) : error C2059: syntax error : ']'
(78) : warning C4244: '=' : conversion from 'const float' to 'int', possible loss of data
(98) : error C2065: 'eScores' : undeclared identifier
(99) : error C2065: 'lScores' : undeclared identifier
(101) : error C2065: 'grades' : undeclared identifier
(101) : error C2660: 'calculatePointGrades' : function does not take 4 arguments

Code tags, please.

First, it is int main(), not void main().

Errors:
44. sum= labScores[] + examScores[]; - What is this supposed to mean?
78. Not an error; you are just assigning a float to an int, meaning you lose the fractional part.
98. You are using the variable eScores, but I don't see one in that scope
99. See 98, for lScores
101. See 101, for grades
101. Your calculatePointGrades() function takes 5 arguments, and you are only passing 4
Topic archived. No new replies allowed.