#include "location.h" location::location(){ } location::location(int r, int c){ myRow = r; myCol = c; } int location::getRow(){ return myRow; } int location::getCol(){ return myCol; } void location::setRow(int r){ myRow = r; } void location::setCol(int c){ myCol = c; } bool operator ==(location l1, location l2){ return (l1.getRow() == l2.getRow()) && (l1.getCol() == l2.getCol()); } location operator +(location l1, location l2){ location l(l1.getRow()+l2.getRow(), l1.getCol()+l2.getCol()); return l; }