Relative Content

Tag Archive for c++stringclasscompare

Expression must have class type but it has type

I’m trying to code 2-3 tree with string keys but compare method doesn’t work in searchNode().
I don’t understand why I can’t compare key with class field. Maybe there is another way to compare std::string variables. Help me please