Пример #1
0
bool Question::operator < (const Question & that) const
{
    if(this->getQuestion() != that.getQuestion()) {
        return this->getQuestion() < that.getQuestion();
    }
    return this->getAnswer() < that.getAnswer();
}
Пример #2
0
bool Question::operator == (const Question & that) const
{
    return this->getQuestion() == that.getQuestion() && this->getAnswer() == that.getAnswer();
}