⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 obstnode.cpp

📁 动态规划实现的字典排序
💻 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 + -