error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

来源:互联网 发布:知乎 王西安 编辑:程序博客网 时间:2024/05/22 22:47

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

 

  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

 

错误类型:

 

 

            缺失类型表述

 

 

错误原因: 函数前未写函数的返回类型,由此导致了这个错误

 

 

解决方法: 以后写函数,不管是声明还是定义,都要加上返回类型,尤其是返回类型是VOID时,更要加上 不要省略

原创粉丝点击