我无法打印欧元符号。我正在使用的程序如下。
我已将字符集设置为代码页 1250,其中 0x80 代表欧元符号。
程序
=======
#include <stdio.h>
#include <locale.h>
int main()
{
printf("Current locale is: %s\n", setlocale (LC_ALL, ".1250"));
printf("Euro character: %c\n", 0x80);
getchar();
return 0;
}
输出
======
当前语言环境是:English_India.1250
欧元字符:?
其他细节
=============
操作系统:Windows Vista
编译器:vc++ 2008 express edition