您的位置:首页 > 其它

vc 判断OS 所用语言版本

2009-05-20 14:05 190 查看
#include <stdio.h>
#include <windows.h>

int main(int argc, char* argv[])
{
LCID language;
language=GetSystemDefaultLCID();
switch(language)
{
case 2052:
printf("中文(中国)/n");
break;
case 3076:
printf("中文(香港)/n");
break;
case 1028:
printf("中文(台湾)/n");
break;
case 1033:
printf("英语(英国)/n");
case 1041:
printf("操他妈的小日本/n");
//若干format操作.....
break;
default:
printf("其他/n");
break;
}
return 0;

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: