返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int score[5][4]={{56,56,89,87},{100,100,100,100},{74,88,98,89},{73,88,92,55}};
  7.     cout<<"座號\t國\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<4;j++)
  13.             {
  14.                     cout<<score[i][j]<<"\t";        
  15.             }
  16.              cout<<endl;  
  17.     }        
  18.     system("pause");
  19.     return 0;   
  20. }
複製代碼

TOP

返回列表