返回列表 發帖
本帖最後由 黃宥華 於 2019-11-29 21:05 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {   
  6.     int o[3][4]={{1,2,3,4,},
  7.                  {5,6,7,8},
  8.                  {9,10,11,12}};
  9.     for(int m=0; m<=2; m++)
  10.         for(int i=0; i<=3; i++)
  11.             cout<<"o["<<m<<"]["<<i<<"]="<<o[m][i]<<endl;
  12.     system("pause");
  13.     return 0;   
  14. }
複製代碼
hahahahahahahaha

TOP

返回列表