返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. srand(time(NULL));
  7.    int food =0;  
  8.       cout<<"今天晚餐吃"<<endl;
  9.      string mora[] = {"吃今天晚餐: (1:雞,豬,牛,鵝,漢堡,羊,飯,麵,吐司,豬腳,)"};
  10.      food=(rand()%9)+1;
  11.     cout << "今天晚餐吃" << endl;
  12.    system("pause");
  13.    return 0;   
  14. }
複製代碼

TOP

返回列表