- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string array[5][2]={{"...", "094463443"},
- {"---", "096257242"},
- {"///", "095678901"},
- {"***", "091234567"},
- {"+++","091234587"}};
- cout << "姓名" << " " << "電話" << endl;
- cout << "====================================" << endl;
- for(int j = 0; j < 5; j++)
- {
- for(int i = 0; i < 2; i++)
- {
- cout << array[j][i] << "\t";
- }
- cout << endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |