返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {      
  6.     int score[5][3]={{90,100,55},{60,85,71},{45,9,0},{63,72,85},{0,1,0}};
  7.     cout<<"座號\t國文\t英文\t數學"<<endl;
  8.     for(int i=0; i<5; i++)
  9.     {
  10.         cout<<i+1<<"\t";
  11.         for(int j=0; j<3; j++)
  12.              cout<<score[i][j]<<"\t";      
  13.         cout<<endl;   
  14.     }
  15.     system("pause");
  16.     return 0;
  17. }
複製代碼

TOP

返回列表