#include
using namespace std;
void fun(int *a[3], int m , int n)
{int i,j,s=0;
for(i=0;is+=a[i][0];
for(i=0;ifor(j=0;j a[i][j]+=s;
}
main(int argc,char **argv)
{
int data[3][3]={{1,2,3},{4,5,6},
{7,8,9}},*a[3],i,j;
for(i=0;i<3;i++)a[i]=data[i];
fun(a, 3 , 3);
//输出结果:用 cout
cout<<"\n";
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
cout<cout<<"\n";
}
}