i keep getting an error when i try to pass the array through function. Help?
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
using namespace std;
void input(double carSpeed[6][7]);
int main (void)
{
double carSpeed[6][7];
input(carSpeed[][]);
return 0;
}
void input(double carSpeed[][7])
{
ifstream FileName;
FileName.open("noise.txt");
for(int x=0; x<6; x++)
{
FileName >> carSpeed[x][0];
for(int y = 1; y < 8 ; y++)
{
FileName >> carSpeed[x][y];
}
}
FileName.close();
return;
}