- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string a[5][2]={{"大熊","0900 000 000"},
- {"胖虎","0911 111 111"},
- {"小夫","0922 222 222"},
- {"靜香","0933 333 333"},
- {"多拉A夢","0944 444 444"}};
- cout<<"姓名\t電話"<<endl;
- cout<<"================="<<endl;
-
-
-
-
- for(int i=0 ; i<5 ;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0 ; j<2 ;j++)
-
- cout<<a[i][j]<<"\t";
- cout<<endl;
-
- }
- system("pause");
- return 0;
- }
複製代碼 |