hoho, simple :) =>
所在版块:求学狮城 发贴时间:2003-03-02 20:38  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 

By default, main function is not void main(), but int main();

therefore, we should use "return 0".


In user defined functions, return type should match the type of

function prototype. In your function void ****(), we should

return void instead of return 0. Thus there will be no

compiling error.


^_^, Good good study, day day up!!!!!!!!!!!!!


.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
********急问一个C or C++ 的傻问题********* 如今   (158 bytes , 508reads )
just "return;" if you func return type is void simon   (69 bytes , 169reads )
......... hobo   (205 bytes , 189reads )
hoho, simple :) => 魅力十足   (359 bytes , 231reads )
void main() 可以用return 0, 因为OS"接收"那个 0 SmellsLikeTeenSpirit   (47 bytes , 158reads )
对,只写个 return; 好像可以了,谢谢! hobo   (0 bytes , 202reads )