首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

wchar_t*显示的为什么是地址而不是字符串呢?该怎么处理

2012-03-21 
wchar_t*显示的为什么是地址而不是字符串呢??wchar_t*pL hello cout p endl是char的话,输出的

wchar_t*显示的为什么是地址而不是字符串呢??
wchar_t   *p=L "hello ";
cout < <p < <endl;

是char的话,输出的应该是hello,可是wchar,怎么输出的是地址呢??

[解决办法]
wcout < <p < <endl;

热点排行