Compiler errors 为什么我的第一个程序使用dev-c++;不工作?

Compiler errors 为什么我的第一个程序使用dev-c++;不工作?,compiler-errors,dev-c++,Compiler Errors,Dev C++,我已经安装了devc++并编写了一个基本的helloworld程序 #include<stdio.h> int main { cout<<"hello"; return 0; } 有人请帮忙 试试这个: #include <iostream> int main() { std::cout << "Hello World!\n"; return 0; } #包括 int main() { std::cout在您的第一行代码中,您使用

我已经安装了devc++并编写了一个基本的helloworld程序

#include<stdio.h>
int main
{
   cout<<"hello";
   return 0;
}
有人请帮忙

试试这个:

#include <iostream>

int main()
{
std::cout << "Hello World!\n";
return 0;
}
#包括
int main()
{

std::cout在您的第一行代码中,您使用了
#include
这是一个指令,但在main函数中您使用了
cout这其中的哪一部分是合并排序?您没有声明
main
的参数。有这么多hello world程序……怎么可能仍然出错呢?我担心“向下投票”按钮适用于您的案例。@trincot问题可能是我的开发人员c++设置,这是我希望您调试的。代码无效,与您的IDE无关。
#include <iostream>

int main()
{
std::cout << "Hello World!\n";
return 0;
}
#include <stdio.h>

int main(void)
{
    printf("hello");
    return 0;
}
#include <iostream>

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

int main() 
{
    cout << "hello";
    return 0;
}