📄 sharecpp.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 + -