返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int score[5][3]={{90,85,85},
  7.                      {70,75,80},
  8.                      {80,95,80},
  9.                      {70,95,75},
  10.                      {80,85,95}};
  11.    
  12.     cout<<"座號\t國文\t英文\t數學"<<endl;
  13.     cout<<"==============================="<<endl;
  14.     for(int a=0; a<5; a++)
  15.     {
  16.         cout<<a+1<<"\t";
  17.         for(int b=0; b<3; b++)
  18.              cout<<score[a][b]<<"\t";
  19.         cout<<endl;
  20.     }
  21.     system("pause");
  22.     return 0;
  23. }
複製代碼
李宇澤Oscar

TOP

返回列表