初学萌新求教
c吧
全部回复
仅看楼主
level 1
闲的没事写了个猜数字的代码,为啥每次都是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
整一个随机数种子 百度一下
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
<random> | Microsoft Docs
2022年08月18日 12点08分 6
那天回复这个是因为那个文档写得看起来相对比较清楚 …… 而且你用的c++,楼上那个说的是c以前常用的方法 ……
2022年08月24日 04点08分
然后发现回复的链接变成了无法点击的文本 ……
2022年08月24日 04点08分
level 12
srand(time(0)) 需包含<ctime>头文件.
另外预处理命令后面不要加分号.
sakana~~
2022年08月18日 15点08分 7
chinanago~~
2022年08月24日 02点08分
1