编译出错~~~ 谁碰到过这样的问题?
VC++6.0下
//文件名 t1.c
#include <stdio.h>
int main()
{
printf("aaaaaa\n");
int i = 0;
return 0;
}
编译会出错哦~~
--------------------Configuration: test - Win32 Debug--------------------
Compiling...
t1.c
F:\WORK\pro\test\test\t1.c(6) : error C2143: syntax error : missing ';' before 'type'
Error executing cl.exe.
test.exe - 1 error(s), 0 warning(s)
文件名的后缀为 .c 时才会有这样的情况,如果是 .cpp 就不会了。
这是什么原因呢?
是VC6.0编译器的bug吗?
谁碰到过的,解释一下~~
:)