The correct syntax is
Student::Student(int tID, string f, string l, int list[])
{
setID(tID);
setFName(f);
setLName(l);
setScores(list);
}
Assuming
Student.h
contains something like
class Student
{
int ID;
int scores[5];
string firstName, lastName;
public:
void setID(int tID);
void setFName(string f);
void setLName(string l);
void setScores(int list[]);
int getID();
string getFName();
string getLName();
int getWeightedTotal();
char getGrade(); void printStudent();
Student();
Student(int tID, string f, string l, int list[]);
};
The code compiles and runs correctly with the following main:
int main()
{
int score[] = {10,9,8,7,6};
Student s(42, "Foo", "Bar", score);
s.printStudent();
}