c++的string就是std命名空间的string啊,就算是一般的c++编程也要用std::string,为什么会觉得他们不是一样东西?你没见到std可能是开头声明了using namespace std