我的简单Hello World代码存在问题.
我不能说出cin我的名字.它说没有定义的运营商">>"有人可以帮忙.以下是我的代码.
#include <iostream>
using namespace std;
int main()
{
int x;
string name;
cout<< "enter name:";
cin>> name;
cout<< "Hello "<< name <<endl;
system("Pause");
}
Run Code Online (Sandbox Code Playgroud) c++ ×1