- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int n[5][3]={{100,100,100},{0,0,0},{1,1,1},{1,23,98},{45,62,61}};
- cout<<"座號 國文 英文 數學"<<endl;
- cout<<"========================="<<endl;
- 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;
- }
複製代碼 |