- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string score[5][2]={{"大維", "0980-454666"},
- {"技安", "0911-333898"},
- {"宜靜", "0922-999579"},
- {"阿福", "0938-234567"},
- {"小叮噹", "0911-864356"}};
-
- cout<<"姓名\t電話"<<endl;
- cout<<"============================"<<endl;
- for(int i=0; i<5; i++)
- {
- cout<<i+1<<"\t";
- for(int j=0; j<2; j++)
- cout<<score[i][j]<<"\t";
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |