Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include"Key.h"
- int Key::comparisons=0;
- int Key::the_key()const
- {
- return x; //Something wrong here I think?
- }
- bool operator == (const Key &x, const Key &y)
- {
- Key::comparisons++;
- return (x.the_key()==y.the_key());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement