?? obstnode.cpp
字號:
#include "OBSTNode.h"
void OBSTNode::setpro(int i_total)
{
f_probility=((float)i_value/(float)i_total)*(float)0.99;
}
void OBSTNode::setpro1(float i)
{
f_probility=i;
}
void OBSTNode::setcontent(string pch_string)
{
pch_content=pch_string;
}
void OBSTNode::setvalue(int value)
{
i_value=value;
}
int OBSTNode::returnvalue()
{
return i_value;
}
float OBSTNode::returnprobility()
{
return f_probility;
}
string OBSTNode::returncontent()
{
return pch_content;
}
void OBSTNode::sethight(int height)
{
i_height=height;
}
int OBSTNode::returnheight()
{
return i_height;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -