输出二维数组各元素的值

 1 #include <iostream>
 2 
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 using namespace std;
 5 int main(int argc, char** argv) {
 6     int a[3][4]={1,2,3,2,5,6,7,6,9,6,55,32};
 7     int *p;
 8     for(p=a[0];p<a[0]+12;p++)
 9     cout <<*p<<" ";
10     cout <<endl;
11     return 0;
12 }
原文地址:https://www.cnblogs.com/borter/p/9401497.html