返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5. string phone[5][2]={
  6. {"大雄","0980-454666"},
  7. {"技安","0911-333898"},
  8. {"宜靜","0922-999579"},
  9. {"阿福","0938-234567"},
  10. {"小叮噹","0911864356"}


  11. };
  12. cout<<"姓名\t電話"<<endl;
  13. cout<<"============"<<endl;
  14. for(int i=0;i<5;i++)
  15. {
  16.   for(int j=0;j<2;j++)
  17.   {
  18.    cout<<phone[i][j]<<"\t";
  19.   }
  20. cout<<endl;
  21. }


  22. system("pause");
  23. return 0;

  24. }
複製代碼
}

TOP

返回列表