template_DefaultType】的更多相关文章

#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; ); cout<<x<<endl; /* 4.6 Press any key to continue…