首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

如何才可以运行啊

2012-03-21 
怎么才可以运行啊?#include iostream.hintmain(){cout helloworld! }到底为什么运行不了的啊?????[

怎么才可以运行啊?
#include <iostream.h>
int   main()
{
        cout   < <   "hello   world! ";
}

到底为什么运行不了的啊?????

[解决办法]
环境:DEVCPP

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
cout < < "hello world! ";
system( "PAUSE ");
return EXIT_SUCCESS;
}

[解决办法]
怎么个不行法??有错误???
[解决办法]
加一句
using namespace std;
[解决办法]
上面头文件用iostream,不要用iostream.h
[解决办法]
错写出来先
人家using namespace std;是加在main外面的
[解决办法]
#include "stdafx.h "
#include <iostream>
int main()
{
std::cout < < "hello world! ";
}
[解决办法]
报什么错?

热点排行