C++运算符重载

写在结构体里面,布尔类型,operator后跟符号,只有一个参数,参数列表后加const

bool operator <(ElemType b) const
{
    if() return true;
}

posted @ 2018-09-11 10:10  YuQiao0303  阅读(119)  评论(0编辑  收藏  举报