注册 登录
编程论坛 C++教室

请教我走好这第一步

好好学习111 发布于 2014-11-01 10:55, 552 次点击
#include <iostream>
#include <string>
using namespace std
int main()
{
    cout<<"hello word!"<<endl:
    return 0
}
到底呢儿错了
3 回复
#2
stop12042014-11-01 17:13
每个语句必须以分号结尾.

using namespace std
 return 0
  少了分号  ;
endl:  不是冒号  是分号
#3
zcdjt2014-11-01 21:59
同上
#4
驽马吐了我2014-11-02 21:03
#include <string>
using namespace std
可以不要
1