consolidate all repos to one for archive
This commit is contained in:
20
semester_2/programiranje_2/primeri/Example01/Point.cpp
Normal file
20
semester_2/programiranje_2/primeri/Example01/Point.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user