本帖最後由 蔡季樺 於 2016-4-16 11:44 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string x[6][2]={{"姓名","電話"},
- {"Tom","0929645878"},
- {"Tony","0935467898"},
- {"bank","0921654879"},
- {"beach","0929005432"},
- {"yee~","0987987732"}};
- for(int i=0; i<=5; i++)
- {
- for(int j=0; j<=1; j++)
- {
- cout<<x[i][j]<<"\t";
- }
- cout<<endl;
- }
- cout<<endl;
- system("pause");
- return 0;
- }
複製代碼 |