摘要:
以下是基于二维数组本身就是连续的思想编写的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... 阅读全文
posted @ 2013-02-18 23:15
爱嘉牛LA
阅读(521)
评论(0)
推荐(0)

浙公网安备 33010602011771号