read from file and put in array of one dimenstional and two dimentional matrix

int read_file(ifstream& in_file, int &row, int &col, double *array, double **matrix)
{
//Reads elements of a matrix from a in_file and stores the elements into one
// dimensional array and two dimensional matrix parameters.
// row and col parameters represents the number of rows and columns of the matrix.
}


3 4
2 3 4 5
1 3 5 4
0 4 4 7

in upper 3 are number of rows and 4 number of columns
Topic archived. No new replies allowed.