Advertisement
Guest User

Key.cpp

a guest
Jan 2nd, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include"Key.h"
  2. int Key::comparisons=0;
  3. int Key::the_key()const
  4. {
  5.     return x;  //Something wrong here I think?
  6. }
  7. bool operator == (const Key &x, const Key &y)
  8. {
  9.     Key::comparisons++;
  10.     return (x.the_key()==y.the_key());
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement