我正在尝试在 Windows 7 中使用 Eclipse 创建我的第一个 C++ 可执行程序。
#include <stdio.h>
int main( int argc, const char* argv[] )
{
printf( "arg" );
}
我收到错误:
" The word 'printf' is not correctly spelled".
以下是我的配置。如何克服这个错误?
最佳答案
您似乎没有为您的 C++ 源代码提供一个被识别为标准 C++ 文件扩展名的扩展名。
能否将您的文件重命名为 main.cpp 以便 eclipse 相应地处理它?</p>
关于c++ - eclipse C++ : The word 'printf' is not correctly spelled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11710325/