template<typename T>
void readMatrixfromTXT(const char *fileName,const int numColumn,const int numRow,T **matrix){
    std::ifstream fin(fileName,std::ifstream::in);
for(int i=0;i<numRow;i++)
for(int j=0;j<numColumn;j++){
fin >> matrix[i][j];
}          
fin.close();
}

  转自http://blog.csdn.net/c_arm/article/details/6219620

相关文章:

  • 2022-01-01
  • 2021-11-30
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案