#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("%lc" , L'人');
return 0;
}
此外,我还注意到 cppreference 上对C标准库 printf() 函数占位符 %lc 的描述:
#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("%lc" , L'人');
return 0;
}
此外,我还注意到 cppreference 上对C标准库 printf() 函数占位符 %lc 的描述:
这个要看你的编译器支持,试试看
wchar_t ch = _T('人');
printf("%lc" , ch);