首页 文章

如何在codeblocks中运行c程序?

提问于
浏览
-1

我在c中写了一个简单的progrum并使用codeblocks运行(13:12) . 我的代码看起来像 -

#include <iostream>
using namespace std;
int main(){
    cout << "hello" << end1;
    return 0;
}

但它没有 Build . 它给了我一个错误信息 .

s Mine\c++ pro. . . 1   fetal error: No such file or directory

为什么我会遇到这个问题?为什么找不到iostram文件 . 它有什么问题以及如何解决它?

1 回答

  • 0

    我不确定你写的错误,但我认为你的编译器可能没有安装 . 我建议你取消CodeBlocks并从已经安装了编译器的http://www.codeblocks.org/downloads/26重新下载安装程序:codeblocks-16.01mingw-setup.exe来自链接 . 祝你好运,伙计!

    编辑1:脚本很好,不用担心 .

    编辑2:哎呀,我现在看到你的代码有问题 . 这是endl,而不是end1!

相关问题