- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main(){
- string phone[5][2]={
- {"大雄","0980-454666"},
- {"技安","0911-333898"},
- {"宜靜","0922-999579"},
- {"阿福","0938-234567"},
- {"小叮噹","0911864356"}
- };
- cout<<"姓名\t電話"<<endl;
- cout<<"============"<<endl;
- for(int i=0;i<5;i++)
- {
- for(int j=0;j<2;j++)
- {
- cout<<phone[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 } |