hi every one,im in the biggenning in my prog and iv allready finished my algorithm so when i was writing the cod i wanted to make shure that first all my function well work perfictly then implement the coad that i had designed
so there were 4 errors i didnt now what is the reson of it
# include <iostream>
# include <fstream>
usingnamespace std;
//declaring prototype and global variabels
int scores[50];
void averagescore(int[]);
void highestscore (int[]);
void lowestscore(int[]);
void readscore(int[]);
int main()
{
//float average;
//put the data into the array
//so we will call function read score
readscore(scores);
//compute the average of the scores
averagescore(scores);
//comput the hiest score
highestscore(scores);
//comput the lowest score
lowestscore(scores);
return 0;
}
void highestscore (scores)
{
cout << "im in function highest scor"<<endl;
}
void lowestscore(scores)
{
cout << "im in function lowest scor"<<endl;
}
void readscore(scores)
{
cout << "im in function read scor"<<endl;
}
void averagescore(scores)
{
cout << "im in function average score"<<endl;
}
and thi is the error:
Error 1 error C2448: 'highestscore' : function-style initializer appears to be a function definition e:\lab6\lab6\array.cpp 31
and the same for the other functions,what dose this mean ?????