📄 新建 文本文档.txt
字号:
/*if(strcmp(msg->name(),"linknode")==0)
{
//processGreyRequest(msg);
int amhead=(int)this->parentModule()->par("ISHEAD");
if(amhead==1)
{
cMessage *newmsg = new cMessage("handyouaddress");
newmsg->setKind(M_HIGHLOW);
newmsg->addPar("senderPX")=this->parentModule()->par("PX");
newmsg->addPar("senderPY")=this->parentModule()->par("PY");
newmsg->addPar("senderGX")=this->parentModule()->par("GX");
newmsg->addPar("senderGY")=this->parentModule()->par("GY");
newmsg->addPar("senderId")=ID;
send(newmsg,"lowergate_out");
}
delete msg;
break;
}
if(strcmp(msg->name(),"handyouaddress")==0)
{
int amhead=(int)this->parentModule()->par("ISHEAD");
int amaddred=(int)this->parentModule()->par("ISADDRED");
if(amhead==0&&amaddred==0)
{
this->parentModule()->par("ISADDRED")=1;
UPDATECOLOR(3);
}
delete msg;
break;
}
else
{
ev << "unknown message received from another node.\n";
endSimulation();
}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -