#include "WordItem.h" WordItem::WordItem(string w, string t) { ranking = 0; word = w; tag = t; } WordItem::~WordItem(void) { } bool WordItem::operator <=(WordItem that) { return (word.compare(that.word) <= 0); } bool WordItem::operator ==(WordItem that) { return ((word.compare(that.word) == 0) && (tag.compare(that.tag) == 0)); }