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

TOP

返回列表