wstring 未定义的标识符,include

wstring str = L"abcd";

VS2010提示 wstring未定义的标识符,include <string>后仍然提示。

因为没有使用using namespace std; 使用std命名空间。在文件头部,添加上就可以。

原文地址:https://www.cnblogs.com/AlexanderZhao/p/12878995.html