#include<iostream>#include<string>
using namespace std;intmain(){
int m, n, i, j;
cout <<"请输入矩阵的行数与列数:"<< endl;
cin >> m >> n;double a[m][n];
cout <<"请以行为单位输入该矩阵:"<< endl;for(i =0; i < m; i++){
for(j =0; j < n; j++){
cin >> a[i][j];}}
cout <<"-------------------"<< endl;