#include "aver.h" // unless this is somewhere under ~/include use double quotes
#include <iostream>
usingnamespace std;
int main(){
double val = aver(
3, // aver() takes the number of additional args as first arg
4., 5., 6. // arguments must be floating point
);
cout << val << endl;
cin.get();
return 0;
}
One other thing... though I suspect you just did this for the example, aver() should only be prototyped in the .h file and it should be defined in a .cpp file.