main.cpp line 71: booloperator ==(Commission& fred, Commission joe);
What are you doing here? It's an forward declaration, not operator call. You just never call your overloaded operator. that is the problem.