原因:
C++ 1998 要求cout and endl被调用使用'std::cout'和'std::endl'格式,或using namespace std;
修改后:
#include<iostream>
std::cout << "Hello World!" << std::endl;
或者
#include<iostream>
using namespace std;
原因:
C++ 1998 要求cout and endl被调用使用'std::cout'和'std::endl'格式,或using namespace std;
修改后:
#include<iostream>
std::cout << "Hello World!" << std::endl;
或者
#include<iostream>
using namespace std;