摘要:
1、wstring string转换1)win32下wchar_t占2个字节,linux下wchar_t占4个字节。wchar_t的高字节应该存放在char数组的低字节。2)win下面有函数WideCharToMultiByte() 和 MultiByteToWideChar()3)linux类似的函数有:mbstowcs() wcstombs() wcstombs和mbstowcs使用:#include <locale.h>setlocale(LC_ALL, "");wcstombs(char * to,wchar_t * from,size_t _maxCo 阅读全文
posted @ 2013-05-16 15:15
常小小
阅读(3038)
评论(0)
推荐(1)

浙公网安备 33010602011771号