16 lines
451 B
C++
16 lines
451 B
C++
#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;
|
|
}
|
|
|