本帖最後由 tonyh 於 2020-11-21 20:55 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- cout<<"座號\t國文\t英文\t數學"<<endl;
- cout<<"============================"<<endl;
- int a[5][4]={{1,90,85,85},
- {2,70,75,80},
- {3,80,95,80},
- {4,70,95,75},
- {5,80,85,95}};
- for(int i=0; i<=4; i++)
- {
- for(int j=0; j<=3; j++)
- cout<<a[i][j]<<"\t";
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |