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

📄 sharecpp.cpp

📁 某个实验事编写粗糙集智能信息处理的程序
💻 CPP
字号:
 #include "roughset.h"
#include "stdafx.h"
#include "shareclass.h"

/////////////////////
//   PosD class    //
/////////////////////


PosD::PosD(int i)		 //Construction,allocate the PosSet
{
	PosNum=0;
	PosSet=new int[i];
}

void PosD::DeletePos()			 //free the PosSet
{
	delete []PosSet;
}
	
//compare
bool PosD::compare(PosD* right)
{
	if(PosNum!=right->PosNum)
		return false;
	else
	{
		for(int i=0;i<PosNum;i++)
			if(PosSet[i]!=right->PosSet[i])
				return false;
		return true;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -