返回列表 發帖
本帖最後由 鄭羽捷 於 2019-9-21 11:35 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"座號\t國文\t數學\t英文"<<endl;
  7.     cout<<"==============================="<<endl;
  8.     int n[5][3]={{96,89,98},{97,95,87},{98,100,94},{96,91,88},{88,100,100}};
  9.    
  10.     for(int i=0;i<5;i++)
  11.     {
  12.         cout<<i+1<<"\t";
  13.         for(int j=0; j<3; j++)
  14.         {
  15.             cout<<n[i][j]<<"\t";
  16.         }  
  17.         cout<<endl;
  18.     }
  19.    
  20.     system("pause");
  21.     return 0;
  22. }
複製代碼

TOP

返回列表