Advertisement
grumblesnake

Point.h

May 17th, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. #ifndef POINT_GUARD
  3. #define POINT_GUARD
  4.  
  5.  
  6.  
  7. namespace Graph_lib {
  8.  
  9. struct Point {
  10. int x,y;
  11.  
  12.  
  13. };
  14.  
  15. inline bool operator==(Point a, Point b) { return a.x==b.x && a.y==b.y; }
  16.  
  17. inline bool operator!=(Point a, Point b) { return !(a==b); }
  18.  
  19.  
  20. }
  21. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement