function should return a value; 'void' return type assumed

来源:互联网 发布:组策略下发软件 编辑:程序博客网 时间:2024/05/22 12:18

--------------------Configuration: ex - Win32 Debug--------------------
Compiling...
ex01.cpp
D:/960174/My Documents/VC/ex/ex01.cpp(8) : warning C4508: 'main' : function should return a value; 'void' return type assumed
Linking...

ex.exe - 0 error(s), 1 warning(s)

 


有返回值的函数无任在任何条件下都必须有返回值,

 

 

原创粉丝点击