#include "stdafx.h"
#include "iostream"
#include "string"
int main()
{
//INput your name
std::cout<<"Please input your name"<<std::endl;
std::string name;
std::cin>>name;
std::cout<<"Hello,"<<name<<std::endl;
return 0;
}
犯得错误:没有include string 给string写了h 毕竟这是C++ 导致它说不识别<<也是醉了。