#include <iostream> #define DEBUG using std::cout; using std::endl; template<class T> class TSimple { private: T data; public: TSimple(T n); void Show(); }; template<class T> TSimple<T>::TSimple(T n) { data = n; } template<class T> void TSimple<T>::Show() { cout<<data<<endl; } void main() { TSimple<int> x(25); x.Show(); TSimple<char> y('Y'); y.Show(); TSimple<double> z(1.24); z.Show(); #ifdef DEBUG //cmd char e; scanf("%c",&e); #endif }