之前初步学习了Qt的汉化,想知道Qt汉化能不能以及如何应用到非Qt的C++文件上呢,谢谢。
2条回答 默认 最新
关注 可以用这个本地化的方法来实现么?
#include <iostream> #include <fstream> #include <string> #include <map> using namespace std; int main() { wifstream in("1.txt"); setlocale(LC_ALL, ""); wchar_ttemp; map<wchar_t, int> cnt; while(!in.eof()) { in >> temp; cnt[temp]++; } typedef map<wchar_t, int>::const_iterator map_iter; for(map_iter it = cnt.begin(); it != cnt.end(); ++it) { wprintf(L"%lc ", it -> first); cout << it -> second << endl; } return 0; }
解决 无用评论 打赏 举报
悬赏问题
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 ubuntu子系统密码忘记
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料