19 lines
313 B
C++
19 lines
313 B
C++
#ifndef EXAMPLE07_POINT_H
|
|
#define EXAMPLE07_POINT_H
|
|
|
|
class Point {
|
|
private:
|
|
//protected:
|
|
int x, y;
|
|
public:
|
|
Point();
|
|
Point (int x1, int y1);
|
|
|
|
int getX() const;
|
|
int getY() const;
|
|
void print() const;
|
|
double distance(const Point& p) const;
|
|
};
|
|
|
|
#endif //EXAMPLE07_POINT_H
|