C++ Builder中这句是啥意思,知道的,帮我在下面注一下好吗,谢谢啦
temp=(unsignedchar)WinNameCheck->Checked;flag=temp<<1;temp=(unsignedchar)WinNumber->C...
temp=(unsigned char ) WinNameCheck->Checked ;
flag=temp<<1;
temp=(unsigned char ) WinNumber->Checked ;
flag|=temp;
p=send_top(0,SET_TYPE,MU_DISPLAY+DisplayAddr->ItemIndex,23); 展开
flag=temp<<1;
temp=(unsigned char ) WinNumber->Checked ;
flag|=temp;
p=send_top(0,SET_TYPE,MU_DISPLAY+DisplayAddr->ItemIndex,23); 展开
展开全部
temp=(unsigned char ) WinNameCheck->Checked ; //强制将WinNameCheck->Checked 所返回的bool型返回值转换为无符号字符型temp。
flag=temp<<1; //temp左移一位后赋给flag
temp=(unsigned char ) WinNumber->Checked ;//玛丽玛丽红,再来
flag|=temp; //flag与temp按位或后赋值给flag
p=send_top(0,SET_TYPE,MU_DISPLAY+DisplayAddr->ItemIndex,23);//发消息
flag=temp<<1; //temp左移一位后赋给flag
temp=(unsigned char ) WinNumber->Checked ;//玛丽玛丽红,再来
flag|=temp; //flag与temp按位或后赋值给flag
p=send_top(0,SET_TYPE,MU_DISPLAY+DisplayAddr->ItemIndex,23);//发消息
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询