/* * point.h * * Created on: 16.04.2013 * Author: trifon */ #ifndef POINT_H_ #define POINT_H_ #include using namespace std; template class Point { T x,y; public: Point() {} Point(T const&, T const&); T getX() const; T getY() const; double distance(Point const& p) const; template friend ostream& operator<<(ostream&, Point const&); //friend istream& operator>>(istream&, Point &); }; #endif /* POINT_H_ */