- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string arr[5][2]={{"小明","0923-456-789"},
- {"小王","0983-945-536"},
- {"小張","0933-243-555"},
- {"小人","0977-525-656"},
- {"小影","09開頭的不告訴你"}};
- cout<<"姓名 電話號碼"<<endl;
- cout<<"=========================="<<endl;
- for(int i=0;i<5;i++)
- {
- for(int =j=0;j<2;j++)
- {
- cout<<arr[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |