![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小游戏
不过五十步笑百步
这个作者很懒,什么都没留下…
展开
-
修改完善后的c++猜数小游戏
//猜数游戏 #include <iostream> #include<ctime> using namespace std; int main() { //添加随机数种子 cout << "猜字游戏开始,你一共有6次猜字机会" << endl; srand((unsigned int)time(NULL)); //srand((unsigned int)time(0));和25行代码等价 //添加随机数 int num = rand() % 1.原创 2022-02-04 09:13:27 · 2185 阅读 · 0 评论 -
简单的猜数游戏-C++
//猜数游戏 #include <iostream> #include<ctime> using namespace std; int main() { //添加随机数种子 cout << "猜字游戏开始,你一共有6次猜字机会" << endl; srand((unsigned int)time(NULL)); //srand((unsigned int)time(0));和25行代码等价 //添加随机数 int num = rand() % 1.原创 2022-01-16 23:29:59 · 2351 阅读 · 0 评论