【发布时间】:2018-05-07 19:07:12
【问题描述】:
我正在尝试输入简单的“Hello World!”代码,但 cout 和 endl 未定义。
#include<iostream>
#include "stdafx.h"
int main()
{
std::cout << "Hello World!" << std::endl;
}
原来的错误是:“'cout': is not a member of 'std', note: see declaration of 'std', 'cout': undeclared identifier”,和 endl 一样。 请帮忙。
【问题讨论】:
标签: cout identifier endl