- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int score[5][4]={{56,56,89,87},{100,100,100,100},{74,88,98,89},{73,88,92,55}};
- cout<<"座號\t國\t數\t自\t社"<<endl;
- cout<<"==================================="<<endl;
- for(int i=0;i<5;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0;j<4;j++)
- {
- cout<<score[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |