返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string array[5][2]={{"...", "094463443"},
  7.                        {"---", "096257242"},
  8.                        {"///", "095678901"},
  9.                        {"***", "091234567"},
  10.                        {"+++","091234587"}};
  11.     cout << "姓名" << "   " << "電話" << endl;
  12.     cout << "====================================" << endl;
  13.     for(int j = 0; j < 5; j++)                                                                              
  14.     {
  15.             for(int i = 0; i < 2; i++)
  16.             {
  17.                     cout << array[j][i] << "\t";
  18.             }
  19.             cout << endl;
  20.     }
  21.     system("pause");
  22.     return 0;
  23. }
複製代碼

TOP

返回列表