返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {  
  6.    int n[5][3]={{100,100,100},{0,0,0},{1,1,1},{1,23,98},{45,62,61}};
  7.    cout<<"座號   國文   英文   數學"<<endl;
  8.    cout<<"========================="<<endl;
  9.    for(int i=0; i<5; i++)
  10.    {
  11.        cout<<(i+1)<<"\t";
  12.        for(int j=0; j<3; j++)
  13.        {
  14.             cout<<n[i][j]<<"\t";
  15.                
  16.        }         
  17.       cout<<endl;      
  18.    }
  19.                
  20.    system("pause");              
  21.    return 0;                 
  22. }
複製代碼

TOP

返回列表