vs报错:RC1004 unexpected end of file found

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

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

错误示例:

int main()
{
    return 0;  
} 

正确示例

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

原文地址:https://www.cnblogs.com/shiyixirui/p/15155383.html