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

TOP

返回列表