下午写程序,写的好好的,突然报错"在注释中遇到意外的文件结束". 下面是官方给出的错误原因是缺少注释终结器 (* /). // C1071.cpp int main() { } /* this comment is fine */ /* forgot the closing tag // C1071 实际查找并未找到缺少*/的错误. 之后发现,即使将新添加的代码删除,依然报错. 经过搜索,找到了原因: utf8 格式出错,有一个注释是/* 中文*/,这里由于编码问题,中文和英文联合起来
1 , Use locate command It is a fast way to find the files location, but if a file just created ,it will can not found use it. You may need run updatedb to update the database 2, Use find command "find" will search on your disk not from the datab