comparing objects

how do we compare 2 objects if the function declaration has only one object as its parameter:

i.e. int compare(const school& teacher). "school" is the name of my class.
You...don't? Or you can use globals I suppose...
could u explain the code above?
What code...??
@firedraco
I think compone87 means this: int compare(const school& teacher)
@compone87
Is that a member of school? if so, it is comparing the object from which you are calling 'compare' with 'teacher'
Topic archived. No new replies allowed.