TEST_2b/Sources/Parameters.cpp
/* Read Data to build the Parameter object */
Read Data to build the Parameter object
Read Data to build the Parameter object
void Parameters::Read_NumPar_Dat(void){
 string str;
 ifstream fin (NumPar_Dat.c_str(),ifstream::in);
 fin >> nt;  getline(fin,str);
 cout << "nt: " << nt << endl;
 fin >> ntout; getline(fin,str);
 cout << "ntout: " <<ntout<<endl;
 fin >> dt; getline(fin,str);
 cout << "dt: " <<dt<<endl;
 fin.close();
 return;
}
void Parameters :: Read_NumPar_Dat ( void ) { string str ; ifstream fin ( NumPar_Dat . c_str ( ) , ifstream :: in ) ; fin >> nt ; getline ( fin , str ) ; cout << " " << nt << endl ; fin >> ntout ; getline ( fin , str ) ; cout << " " << ntout << endl ; fin >> dt ; getline ( fin , str ) ; cout << " " << dt << endl ; fin . close ( ) ; return ; }
Read Data to build the Parameter object
Read Data to build the Parameter object