Hello..
Im new to templates (some of you already know that heh) and I wonder if Im right..
In normal class you pass arguments to constructor:
and in template class you do:Code:class somec { public: somec(char *somearg) { .. } } somec *tmp = new somec(arguments);
Am I right about that? Thanks for helpCode:template <class t, arguments> class somec { public: somec(arguments) { .. } t data; }; somec <char> *tmp = new somec<char, arguments>;



LinkBack URL
About LinkBacks



CornedBee