返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   string num [5][2]={{"大熊","0980-454666"},{"忮安","0911-333898"},{"宜靜","0922-999579"},{"阿福","0938-2345678"},{"小叮噹","0911-864356"}};
  7.   cout<<"姓名""電話\t"<<endl;
  8.    cout<<"座號/t 國文/t 數學/t 英文/t "<<endl;
  9.    cout<<"=============================="<<endl;
  10.       for(int i=0;i<5;i++)
  11.       {  
  12.         for(int j=0;j<2;j++)
  13.         {
  14.           cout<<num[i][j]<<"\t";
  15.         }
  16.         cout<<endl;
  17.       }      
  18.     system("pause");
  19.     return 0;   
  20. }
  21.    
複製代碼

TOP

返回列表