• 2022-06-15 问题

    设有类模板,请实例化 #include[iostream] using namespace std; template[typename numtype] class Classtemple{ public: void setdata( 1 ) { a=x;b=y; } private: numtype a,b; }; int main(){ 2 intobj; intobj.setdata(23,24); ...... }

    设有类模板,请实例化 #include[iostream] using namespace std; template[typename numtype] class Classtemple{ public: void setdata( 1 ) { a=x;b=y; } private: numtype a,b; }; int main(){ 2 intobj; intobj.setdata(23,24); ...... }

  • 1