C++程序编译出错,问题出在哪?请求帮助,急!
在下面程序class DataBankbyInput
{
public:
static int NELEM;
static int NPOIN;
static int NDIME;
static int NNODE;
static int Nx;
static int Ny;
static double Dtime;
static double Ttime;
static int** Lnods;
static double** Coord;
static double* InitialValue;
DataBankbyInput( );
void InputBasicData(int& NELEM,int& NPOIN,int& NDIME,int& NNODE,
int& Nx,int& Ny,double& Dtime,double& Ttime,
int** Lnods,double** Coord,double* InitialValue);
~DataBankbyInput(){};
};
DataBankbyInput::DataBankbyInput( )
{
}
void DataBankbyInput::InputBasicData(int& NELEM,int& NPOIN,int& NDIME,int& NNODE,
int& Nx,int& Ny,double& Dtime,double& Ttime,
int** Lnods,double** Coord,double** InitialValue)
{
int ielem,inode,ipoin,idime;
ifstream input_data_file;
string filename1;
cout<<"enter the name of the input file";
cin>>filename1;
input_data_file.open(filename1.c_str());
if(input_data_file.fail())
{
cout<<"File input_data_file could not be opened";
exit(2);
}
//
ofstream output_data_file;
string filename0;
cout<<"enter the name of the output file";
cin>>filename0;
output_data_file.open(filename0.c_str());
if(output_data_file.fail())
{
cout<<"File output_data_file could not be opened";
exit(2);
}
// READ THE FIRST DATA CARD, AND ECHO IT IMMEDIATELY.
input_data_file>>NELEM>>NPOIN>>NDIME>>NNODE>>Nx>>Ny;
output_data_file<<NELEM<<' '<<NPOIN<<' '<<NDIME<<' '<<NNODE<<' '<<Nx<<' '<<Ny<<' '<<endl;
// READ TIME STEPPING AND SELECTIVE OUTPUT PARAMETERS
input_data_file>>Dtime>>Ttime;
output_data_file<<Dtime<<' '<<Ttime<<endl;
//
for(ielem=0;ielem<NELEM;ielem++)
{
for(inode=0;inode<NNODE;inode++)
{
input_data_file>>Lnods[ielem][inode];
output_data_file<<Lnods[ielem][inode]<<' '<<endl;
}
}
for(ipoin=0;ipoin<NPOIN;ipoin++)
{
for(idime=0;idime<NDIME;idime++)
{
input_data_file>>Coord[ipoin][idime];
output_data_file<<Coord[ipoin][idime]<<' '<<endl;
}
}
for(ipoin=0;ipoin<NPOIN;ipoin++)
{
input_data_file>>InitialValue[ipoin];
output_data_file<<InitialValue[ipoin]<<' '<<endl;
}
return;
}
的编译过程中出现以下的错误提示,请高手帮忙看看问题出在哪?
c:\Users\LiNansheng\Documents\try0\try0.cpp(196): error C2511: “void DataBankbyInput::InputBasicData(int &,int &,int &,int &,int &,int &,double &,double &,int ** ,double ** ,double ** )” : “DataBankbyInput”中没有找到重载的成员函数