The point of this function is to open the file and load the values inside to "list" for use elsewhere. The problem occurs at inFile >> list; (lines 15 and 20). I've read elsewhere about overloading the expression, but I don't exactly know what that means. Any help is appreciated
edit:
1 2 3 4 5 6
void displayScores (int list[], int size)
{
for (int index = 0; index < size; index++)
cout << list[index] << " ";
cout << endl;
}
Is what I will be using to display from the "list"