1 Star 0 Fork 1

JoyPoint/CppCodeBase

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
testLocale.cpp 594 Bytes
一键复制 编辑 原始数据 按行查看 历史
JoyPoint 提交于 2021-01-01 23:31 +08:00 . add helloworld and FileFormatIO
#include <windows.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <ostream>
#include <iterator>
using namespace std;
vector<wstring> locals;
BOOL CALLBACK MyFuncLocaleEx(LPWSTR pStr, DWORD dwFlags, LPARAM lparam)
{
locals.push_back(pStr);
return TRUE;
}
int main()
{
EnumSystemLocalesEx(MyFuncLocaleEx, LOCALE_ALL, NULL, NULL);
for (vector<wstring>::const_iterator str = locals.begin(); str != locals.end(); ++str)
wcout << *str << endl;
wcout << "Total " << locals.size() << " locals found." << endl;
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/JoyPoint/CppCodeBase.git
git@gitee.com:JoyPoint/CppCodeBase.git
JoyPoint
CppCodeBase
CppCodeBase
master

搜索帮助