这题考察rand的使用LOVEKlee13142024-08-05 15:34:57发布于:上海3阅读0回复0点赞#include<bits/stdc++.h> using namespace std; string a[4]={"榴莲","苹果","猕猴桃","蓝莓"}; int main(){ srand(time(0)); cout<<a[rand()%4]; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个