返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int h[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 i=0; i<5; i++)
  10.     {
  11.       cout<<i+1<<"\t";      
  12.       for(int u=0; u<3; u++)
  13.       {
  14.         cout<<h[i][u]<<"\t";        
  15.       }
  16.       cout<<"\n";                  
  17.     }
  18.     system("pause");
  19.     return 0;
  20. }
複製代碼

TOP

返回列表