初学萌新求教
c吧
全部回复
仅看楼主
level 1
想不出啥好名字z
楼主
闲的没事写了个猜数字的代码,为啥每次都是41啊,是我rand用错了吗忘了怎么用了 (๑ó﹏ò๑)
2022年08月17日 15点08分
1
level 2
一只可爱汐
C++还萌新?
2022年08月18日 06点08分
2
超超超音速的菜
?
2022年08月21日 12点08分
星辰划破星空💘
@abyss深渊15125
估计是C语言萌新吧
2022年08月22日 02点08分
level 1
星渊777
整一个随机数种子 百度一下
2022年08月18日 07点08分
3
level 1
中中努力
种子,自己去csdn搜c++随机数
2022年08月18日 09点08分
4
level 1
乱七八糟我靠
srand((unsignedint)time(NULL));
2022年08月18日 11点08分
5
真学五千年
空格
2022年08月23日 16点08分
level 10
w34rt67u
<random> | Microsoft Docs
2022年08月18日 12点08分
6
w34rt67u
那天回复这个是因为那个文档写得看起来相对比较清楚 …… 而且你用的c++,楼上那个说的是c以前常用的方法 ……
2022年08月24日 04点08分
w34rt67u
然后发现回复的链接变成了无法点击的文本 ……
2022年08月24日 04点08分
level 12
白き永遠
srand(time(0)) 需包含<ctime>头文件.
另外预处理命令后面不要加分号.
sakana~~
2022年08月18日 15点08分
7
Archet
chinanago~~
2022年08月24日 02点08分
1