gpt4 book ai didi

c++ - eclipse C++ : The word 'printf' is not correctly spelled

转载 作者:太空狗 更新时间:2023-10-29 23:36:54 28 4
gpt4 key购买 nike

我正在尝试在 Windows 7 中使用 Eclipse 创建我的第一个 C++ 可执行程序。

#include <stdio.h>
int main( int argc, const char* argv[] )
{
printf( "arg" );
}

我收到错误:

" The word 'printf' is not correctly spelled".

以下是我的配置。如何克服这个错误?

enter image description here

enter image description here

enter image description here

最佳答案

您似乎没有为您的 C++ 源代码提供一个被识别为标准 C++ 文件扩展名的扩展名。

能否将您的文件重命名为 ma​​in.cpp 以便 eclipse 相应地处理它?<​​/p>

关于c++ - eclipse C++ : The word 'printf' is not correctly spelled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11710325/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com