#ifndef __MYPOINT_H__ #define __MYPOINT_H__ #include using namespace std; template class Point { private: T x, y; public: Point(T x, T y); void show(); }; template Point::Point(T x, T y) : x(x), y(y) { } template void Point::show() { cout << "x = " << x << ", y = " << y << endl; } #endif // __MYPOINT_H__