Point - }; } inline bool operator==(Point a, Point b) {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef POINT_GUARD #define POINT_GUARD # //typedef void (*Callback)(void*,void*); / namespace Graph_lib { n struct Point { int x,y; Point(int xx, int yy) : x(xx), y(yy) { } Point() :x(0), y(0) { } P // Point& operator+=(Point d) { x+=d.x; y+=d.y; return *this; }
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: }; } inline bool operator==(Point a, Point b) { return a.x==b.x && a.y==b.y; } i inline bool operator!=(Point a, Point b) { return !(a==b); } i } #endif...
View Full Document

Ask a homework question - tutors are online