<分区>
我是 c++ 的新手,我正在使用“hello world”程序,但我一直收到错误
“cout”没有命名我在 Ubuntu 上使用 geany 的类型,如果这有所不同,这是我的代码:
#include <iostream>
int main ()
{
extern cout << "hello world!";
return 0;
}
我不想提出新问题,所以我要在这里添加它
使用提供的修订版,它现在可以编译,但是当我运行程序时出现错误
./geany_run_script.sh: 5: ./geany_run_script.sh: ./hello: not found
对此有什么想法吗?