本帖最後由 tonyh 於 2020-11-21 20:58 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int i,j,score[5][3]={{90,88,92},
- {1,8,4},
- {55,28,12},
- {63,55,78},
- {91,82,99},};
- cout<<"座號\t國語\t英文\t數學\t"<<endl;
- cout<<"+++++++++++++++++++++++++++"<<endl;
- for(int i=0; i<=4;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0; j<3; j++)
- cout<<score[i][j]<<"\t";
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |