wstring 未定义的标识符,include

wstring str = L"abcd";

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

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

posted @ 2015-09-03 19:38  星空天宇  阅读(423)  评论(0编辑  收藏  举报