vs报错:RC1004 unexpected end of file found

 

如图,在编译代码时,出现报错:RC1004  unexpected end of file found

 

 

原因是,cpp最后要多一行才行,不然就会报这个错误

 

错误示例:

int main()
{
    return 0;  
} 

 

正确示例

int main()
{
    return 0;
}  
// 在最后在留一行,这样就不会报错 

 

posted @ 2021-08-18 09:34  十一的杂文录  阅读(388)  评论(0编辑  收藏  举报