20 lines
340 B
C++
20 lines
340 B
C++
#include <iostream>
|
|
#include "Point.h"
|
|
|
|
int Point::getX() {
|
|
return x;
|
|
}
|
|
int Point::getY() {
|
|
return y;
|
|
}
|
|
//void Point::setX(int xx) {
|
|
void Point::setX(int x) {
|
|
//x=xx;
|
|
this->x=x;
|
|
}
|
|
void Point::setY(int y) {
|
|
this->y=y;
|
|
}
|
|
void Point::print() {
|
|
std::cout << "(" << x << "," << y << ")" << std::endl;
|
|
} |