- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string num [5][2]={{"大熊","0980-454666"},{"忮安","0911-333898"},{"宜靜","0922-999579"},{"阿福","0938-2345678"},{"小叮噹","0911-864356"}};
- cout<<"姓名""電話\t"<<endl;
- cout<<"座號/t 國文/t 數學/t 英文/t "<<endl;
- cout<<"=============================="<<endl;
- for(int i=0;i<5;i++)
- {
- for(int j=0;j<2;j++)
- {
- cout<<num[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
-
複製代碼 |