返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string a[5][2]={{"大熊","0900 000 000"},
  7.                     {"胖虎","0911 111 111"},
  8.                     {"小夫","0922 222 222"},
  9.                     {"靜香","0933 333 333"},
  10.                     {"多拉A夢","0944 444 444"}};
  11.     cout<<"姓名\t電話"<<endl;
  12.     cout<<"================="<<endl;
  13.    
  14.    
  15.        
  16.                      
  17.     for(int i=0 ; i<5 ;i++)
  18.     {
  19.             cout<<i+1<<"\t";
  20.         for(int j=0 ; j<2 ;j++)
  21.         
  22.         cout<<a[i][j]<<"\t";
  23.          cout<<endl;   
  24.         
  25.     }
  26.     system("pause");
  27.     return 0;
  28. }
複製代碼

TOP

返回列表