返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int s[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 j=0; j<3; j++)
  13.             cout<<s[i][j]<<"\t";
  14.         cout<<endl;      
  15.     }  

  16.     system("pause");
  17.     return 0;
  18. }
複製代碼

TOP

返回列表