返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int num[5][4]={{1,87,87,87},{2,87,87,87},{3,87,87,87},{4,87,87,87},{5,87,87,87}};
  7.     cout<<"座號\t國文\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

返回列表