- C/C++ code
-
char szA[100]; //An ANSI string buffer WCHAR szW[100]; //A Unicode string buffer //Normal sprintf:all strings are ANSI sprintf(szA, "%s","ANSI Str"); //Converts Unicode string to ANSI sprintf(szA,"%S",L"Unicode Str"); //Normal swprintf:all strings are Unicode swprintf(szW,L"%s",L"Unicode Str"); //Converts ANSI string to Unicode swprintf(szW,L"%S", "ANSI Str");
swprintf和sprintf的使用
C/C++代码:ANSI与Unicode字符串转换
最新推荐文章于 2024-04-19 11:19:04 发布
2829

被折叠的 条评论
为什么被折叠?



