3484| 2
|
我想一次发送10个字节的数据,该用什么数据类型啊? |
1金钱
最佳答案code 为int类型的,只能是32位,这样发肯定不行啊,如果你只是往外输出0xff00000000+end+cook的10个字符,你可以这样:int main()
{
int end,cook,code ;
end=0x12;
cook=0x34;
code =end+cook;
printf("0XFF%08X \n", code);
return 0;
}
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-21 07:23
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网