Ask a C ++ template problem, VC6.0 environment

xiaoxiao2021-03-06  110

// Example of the Template KeywordTemplate Class TestClass {public: char buffer [i]; t testfunc (t * p1);

Template T TestClass :: TestFunc (T * P1) {RETURN * (P1 )};

// to create an instance of testclasstestclass ClassInst; compiled by the above program, but there is a problem, please teach the master

转载请注明原文地址:https://www.9cbs.com/read-100331.html

New Post(0)