我欣赏这些差异可以忽略不计,但我正在做一些数字运算,所以我想使用C.我刚刚在VS2010中创建了一个项目,选择了一个C项目并编写了一些C.所有执行都很好,但是
这是在快速(呃)C编译器或C中创建和执行的,因为它是一个C项目?
我如何指定我想写的代码实际上是C并编译并以C运行?
解决方法
Visual Studio C编译器将所有.c文件视为C语言文件并将其编译为此类文件.
附加参考:
By default,the Visual C++ compiler
treats all files that end in .c as C
source code,and all files that end in
.cpp as C++ source code. To force the
compiler to treat all files as C
regardless of file name extension,use
the /Tc compiler option.
@L_502_0@