原文:出现“error c4430缺少类型说明符-假定为int。注意C++不支持默认int

出现这种错误的原因,是因为函数没有写返回值。是在VC . 的工程转为高版本 VS 的时候经常出现的 include lt stdio.h gt main printf hello,world n 上面的代码在VC . 中编译没错,但在VS 编译出错,因为主函数没有返回值,加上void即可。 ...

2017-06-23 10:27 0 3166 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM