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     void output(int(*p)[4]);
 7     int a[3][4]={1,3,5,7,8,9,12,14,15,32,11,14};
 8     output(a);
 9     return 0;
10 }
11 
12 void output(int(*p)[4]){
13     int i,j;
14     for(i=0;i<3;i++)
15     for(j=0;j<4;j++)
16     cout<<*(*(p+i)+j)<<" ";
17     cout<<endl;
18 }

 

相关文章:

  • 2021-11-13
  • 2021-04-04
  • 2022-12-23
  • 2022-01-07
  • 2021-07-04
  • 2022-12-23
  • 2021-06-20
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案