全部问题 > 当前问题

帮看看错在哪里

QQ截图20150814221752.png

刘善川 2015-8-14 22:18:16

共 4 个回答

祁老师 2015-8-15 09:13:34

error报错是什么

刘善川 2015-8-15 12:15:26

回复 祁老师

-------------------Configuration: uu - Win32 Debug--------------------

Compiling...

uu.cpp

c:\documents and settings\administrator\uu.cpp(5) : error C2664: 'time' : cannot convert parameter 1 from 'int *' to 'long *'

        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

c:\documents and settings\administrator\uu.cpp(6) : error C2065: 'srand' : undeclared identifier

c:\documents and settings\administrator\uu.cpp(9) : error C2065: 'rand' : undeclared identifier

c:\documents and settings\administrator\uu.cpp(21) : warning C4508: 'main' : function should return a value; 'void' return type assumed

执行 cl.exe 时出错.


uu.obj - 1 error(s), 0 warning(s)


刘善川 2015-8-15 12:27:33

回复 祁老师:和视频上的一样,为啥总是报错呢

祁老师 2015-8-15 12:41:01

回复 刘善川:加我QQ吧  1193620424

问题来自: 随机数