i got errors
hello.cpp:27: error: expected primary-expression before ??token
hello.cpp:29: error: expected primary-expression before ??token
hello.cpp:31: error: expected primary-expression before ??token
what's wrong!? help me!!
#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
using namespace std;
void minMax(const double [], int, double&, double&);
void numMeasures(const double [], int, double&, double&);
void getData(fstream&, double [], int&);
int main()
{
double count, min, max, mean, var;
count = 25;
double data[25];
ifstream dataFile;
dataFile.open("sewage.data");
if(dataFile.fail())
{
cout<<"file did not open, please check it"<<endl;
system("pause");
return 1;
}
getData(dataFile, data[], count);
minMax(data[], count, min, max);
numMeasures(data[], cout, mean, var);
system("pause");
return 0;
}
void minMax(const double data[], int count, double& min, double& max)
{
................
}
void numMeasures(const double data[], int count, double& mean, double& var)
{
................
}
void getData(fstream& dataFile, double data[], int& count)
{
................
}