在lcd显示
#define S_CHAR_ARROWUP '▲'
#define S_CHAR_ARROWDOWN '▼' ▼,▼
时提示可能会遇到移植问题
普通字符是一个字节存放的,
而multicharacter是是int 类型的。
A character literal is one or more characters enclosed in single quotes, as in ’x’, optionally preceded by
the letter L, as in L’x’. A character literal that does not begin with L is an ordinary character literal, also
referred to as a narrow-character literal.
An ordinary character literal that contains a single c-char has type char, with value equal to the numerical value of the encoding of the c-char in the execution character set.
An ordinary character literal that contains more than one c-char is a multicharacter literal. A multicharacter
literal has type int and implementation-defined value.
也就是说在单引号内的不是一个字符,
用VC看结果:
int main(int argc, char* argv[])
{
printf("Hello World!%0x /n",'▼');
printf("Hello World!%c%c /n",0xa8,0x8b);
return 0;
}