wstring 未定义的标识符,include <string>

来源:互联网 发布:淘宝新店没流量 编辑:程序博客网 时间:2024/05/02 00:47

wstring str = L"abcd";

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

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

0 0