我无法打印欧元符号。我使用的程序如下。
我已将字符集设置为代码页1250,其中0x80代表欧元符号。
程序
=======
我已将字符集设置为代码页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