摘要:
以下是基于二维数组本身就是连续的思想编写的View Code 1 #include<iostream> 2 using namespace std; 3 void printfA(int *p,int row,int col){//二维数组的第一个小元素地址,a[0][0]的地址,行,列 4 int i; 5 for(i=0;i<row*col;i++,p++){ 6 if(i%col==0) 7 cout<<endl; 8 cout<<" "<<*p; 9 }10 cout<<endl;11 }12... 阅读全文