Posted by: Milann Mania February 29, 2016
Assistance with debugging C++ Program
Login in to Rate this Post:     0       ?        
void inputScores(double scores[]) should return double[] values......array is not passed by reference ..so change function as:
double[] inputScores(double scores[])
{
for (int i = 0; i < 5; i++)
{
cout << "Please enter the score from Judge #" << i + 1 << ": ";
cin >> scores[i];
}
return scores;
}

and judgeScores = inputScores(judgeScores); .and call other methods....will work
Read Full Discussion Thread for this article