瞎搞
2025-04-22 16:16:37
发布于:广东
3阅读
0回复
0点赞
#include <bits/stdc++.h> //import header file "bits/stdc++.h"
int main() //Use the main function
{
srand((unsigned)time(NULL)); //Set random number seed
int choose=rand()%2+1; //Set random number
if(choose==1) std::cout<<"Hello,World!"; //C++'s put "Hello,World!"
else if(choose==2) printf("Hello,World!"); //C's put "Hello,World!"
return 0; //return 0
}
这里空空如也
有帮助,赞一个