I"m trying to write a program for my uni assignment but I got this error during compiling and I have no idea wat it means, could somebody help me
Here's the error
too few arguments to function `void CalculateAverage(int &, double &, double &, int &)'
this is the code that cause the error
void CalculateAverage(int& Score, double& sAverage, double& cAverage, int& NoOfStudent);
Basically, I"m trying to open a file read a bunch of test score and calculate the average for the test score, i've decided to use a function to do this but I got lost on the way and have no idea what the error means.
sounds like you have called it with few too arguments, post the whole code if its small so i can check it over
> oid CalculateAverage(int& Score, double& sAverage, double& cAverage, int& NoOfStudent);
Looks like another attempt to prototype the function rather than call it
CalculateAverage(Score, sAverage, cAverage, NoOfStudent);