- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string subject[4]={"座號","國文","英文","數學"};
- int point[5][3]={{90,85,85},
- {70,75,80},
- {80,95,80},
- {70,95,75},
- {80,85,95}};
- for(int i=0; i<=3; i++)
- {
- cout<<subject[i]<<"\t";
- }
- cout<<endl;
- cout<<"=============================="<<endl;
- for(int j=0; j<=4; j++)
- {
- cout<<j+1<<"\t";
- for(int k=0; k<=2; k++)
- {
- cout<<point[j][k]<<"\t";
- }
- cout<<endl;
- }
- cout<<endl;
- system("pause");
- return 0;
- }
複製代碼 |