typedef struct DICOMRowsAndVolumn{
CString strRows;
CString strColumn;
bool operator <(const DICOMRowsAndVolumn &other) const
{
if(this->strRows==other.strRows && this->strColumn==other.strColumn) return false;
else return true;
}
}RowsAndVolumn;
//定义map
map<RowsAndVolumn,int> m_RowsAndVolumn;
C++结构体作为map的key的时候需要重载<运算符
最新推荐文章于 2024-02-03 16:01:22 发布