返回列表 發帖
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.   string name[]={"R/C Car", "Model Plane", "Football", "Tennis Ball","Toy Gun","Basketball"};
  6.   int price[]={400,690,678,560,570,300};
  7.   cout<<"*****Da Epic Toy Store*****"<<endl<<endl;
  8.   cout<<"[Products]"<<endl;
  9.   
  10.   for(int i=0;i<=5;i++)
  11.   {
  12.           cout<<"("<<i+1<<")"<<name[i]<<"\t"<<"$"<<price[i]<<endl;
  13.           }
  14.    
  15.     system("pause");
  16.     return 0;
  17. }
複製代碼

TOP

返回列表