爱嘉牛LA

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年2月18日

摘要: 以下是基于二维数组本身就是连续的思想编写的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 阅读(508) 评论(0) 推荐(0) 编辑