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

TOP

返回列表