#include <iostream> using namespace std; template <typename T1,typename T2=int> class Test{ public: T1 NumNBei(T1 num,T2 N) { return num*N; } }; void main() { Test<double> t; double x= t.NumNBei(2.3,2); cout<<x<<endl; /* 4.6 Press any key to continue */ }