consolidate all repos to one for archive
This commit is contained in:
15
semester_2/programiranje_2/primeri/Example06/CPoint.cpp
Normal file
15
semester_2/programiranje_2/primeri/Example06/CPoint.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <iostream>
|
||||
#include "CPoint.h"
|
||||
|
||||
CPoint::CPoint() : p(), color(0) {
|
||||
}
|
||||
|
||||
CPoint::CPoint(int x, int y, int c) : p(x, y), color(c) {
|
||||
}
|
||||
void CPoint::print() const {
|
||||
p.print();
|
||||
std::cout << "color=" << color << " " << std::endl;
|
||||
//std::cout << "(" << p.x << ", " << p.y << ", color= " << color << ")" << std::endl;
|
||||
//std::cout << "(" << p.getX() << ", " << p.getY() << ", color= " << color << ")" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user