在Keil C51中用printf输出一个单字节变量时要使用%bd,如. unsigned char counter; ... printf("Current sum:%hx\n",sum);//输出16位无符号以十六进制表示的整数.
確定! 回上一頁