Write a function that takes the following as the arguments: + amatrix of integers + the matrix dimensions: nrow and ncol + a filename The function then writes the matrix to a text file with thegiven name. The format would be the same as in problem 2. Line 1:number of rows (nrow) Line 2: number of columns (ncol) From line 3:the matrix.. in C++
Answer