#define 用srand ( (unsigned)time(NULL) );产生随机数 提示ca

发布时间:2021-02-26 06:44:24

#define 用srand ( (unsigned)time(NULL) );产生随机数 提示can't open file ‘time.h' 我是用伟福编译器写的单片机程序,要产生随机数 写完后在TC里面能够运行 在韦福里却提示can't open file ‘time.h'

网友回答

直接就给个数就行了
不要用时间作种子了
srand(123);
以上问题属网友观点,不代表本站立场,仅供参考!