二維數組做爲形參的傳遞

代碼實例: #include<iostream> #include<cstdio> #include<map> using namespace std; void func1(int arr[][5])//傳遞數組,需生命數組第二維的大小 { for(int i=0;i<5;i++){ for(int j=0;j<5;j++)cout<<arr[i][j]<<" ";
相關文章
相關標籤/搜索