Point - inline bool operator==(Point a Point b return...

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

This note was uploaded on 02/26/2011 for the course ECE 112 taught by Professor Doraty during the Spring '11 term at Texas A&M.

Ask a homework question - tutors are online