#include <iostream>
#include <locale.h> // 头文件,
#include <wchar.h>
#include <stdlib.h>
int main ()
{
char x = 'a';
wchar_t y = L'是';// 宽字符可以表示除英文之外的其它的字符, 注意表示方法,
printf("%cn", 'B'); //"%cn"是字符串,
setlocale(LC_ALL, "chs");
wprintf(L"%lcn", L'爱'); // 宽字符,
return 0;
}
最后
以上就是优雅发卡最近收集整理的关于char的字面值的全部内容,更多相关char内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复