本帖最後由 鄭羽捷 於 2019-9-21 11:35 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- cout<<"座號\t國文\t數學\t英文"<<endl;
- cout<<"==============================="<<endl;
- int n[5][3]={{96,89,98},{97,95,87},{98,100,94},{96,91,88},{88,100,100}};
-
- for(int i=0;i<5;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0; j<3; j++)
- {
- cout<<n[i][j]<<"\t";
- }
- cout<<endl;
- }
-
- system("pause");
- return 0;
- }
複製代碼 |