关于注释的一个 “灵异” 问题,求教啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
发现一个很怪异的问题,有个程序是unix版本,要移植在vc中,可是总是报错,费了很长时间才发现是注释的问题!!!搞不清怎么回事,请高手指教,觉得有些怪异。
问题如下:
建立一个vc win32 console application 工程,就随便添加了一行有中文的注释,就编译错误:
#include "stdafx.h"
int main(int argc, char* argv[])
{
/******里*/
return 0;
}
re.cpp
O:\ere\ere.cpp(12) : fatal error C1071: unexpected end of file found in comment
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\ere.sbr': No such file or directory
Error executing bscmake.exe.
ere.exe - 2 error(s), 0 warning(s)
如果把里前面加个空格(如下)就成功,真是奇怪啊!!!
#include "stdafx.h"
int main(int argc, char* argv[])
{
/****** 里*/
return 0;
}
不知道这个注释怎么会这样怪异,用vc也很久了,还第一次遇到这么怪异的问题,请高手指教啊!!