#include<iostream>
usingnamespace std;
void calculate(int ** t, intm, intn)
{
for (int i=1;i<m;i++)
for (int q = 0; q < n; q++)
{
cout<<t[i][q] << endl;
}
}
int main()
{
int M, N;
cin>> M >> N;
int **p = newint*[M];
for (int i = 0; i < M; i+ )
{
p[i]= newint[N];
}
for (int i = 0; i < M;i++)
{
for (int m = 0; m < N;m++)
cin>> p[i][m];
}
calculate(p,M, N);
return 0;
}
0609动态数组以及传递问题
最新推荐文章于 2023-08-15 09:21:44 发布