ms vc ++ iostream编译错误 [英] ms vc++ iostream compile error
本文介绍了ms vc ++ iostream编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Microsoft Visual C ++ 2010 Express中的以下代码:
The following code in microsoft visual C++ 2010 express:
#include <iostream>
//using namespace std;
int main(int argc, char **argv)
{
return(0);
}
给我错误:
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\cmath(19): error C2061: syntax error : identifier 'acosf'
...
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\cmath(41): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
如果注释掉"#include",则它将编译.我用现有代码创建了一个项目,并对其进行了编辑.
If comment out "#include " then it compiles. I created an project from existing code and edited to the above.
推荐答案
将扩展名从.c
更改为.cpp
这篇关于ms vc ++ iostream编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文