// Example of the template keyword
template <class T, int i> class TestClass {
public:
char buffer[i];
T testFunc(T* p1 );
};
template <class T, int i>
T TestClass<T,i>::testFunc(T* p1) {
return *(p1++)
};
// To create an instance of TestClass
TestClass<char, 5> ClassInst;
以上程序编译通过,但是连接有问题,请教高手