You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef COORD_INPUT
|
|
#define COORD_INPUT
|
|
|
|
struct p_coord
|
|
{
|
|
int x;
|
|
int y;
|
|
};
|
|
|
|
bool coordValide(struct p_coord coord) {
|
|
return coord.x>=0 && coord.y>=0;
|
|
}
|
|
|
|
bool coordEqual(struct p_coord a, struct p_coord b) {
|
|
return a.x == b.x && a.y == b.y;
|
|
}
|
|
|
|
#endif //COORD_INPUT
|