本帖最後由 洪藜芸 於 2019-9-21 11:09 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- cout<<"座號\t國文\t數學\t英文"<<endl;
- cout<<"______________________________"<<endl;
- int a[5][3]={{68,43,65},{85,62,73},{95,100,98},{86,71,88},{88,77,96}};
-
- for(int i=0;i<5;i++)
- {
- cout<<i+1<<"\t";
- for(int s=0;s<3;s++)
- {
- cout<<a[i][s]<<"\t";
- }
- cout<<endl;
- }
-
- system("pause");
- return 0;
- }
複製代碼 |