You are viewing a single comment's thread. Return to all comments →
too many lines. this works as well:
template <class T> class AddElements { public: T element; AddElements(T i) { element = i; } T add(T i) { return element+i; } T concatenate(T i) { return element+i; } };
Seems like cookies are disabled on this browser, please enable them to open this website
C++ Class Templates
You are viewing a single comment's thread. Return to all comments →
too many lines. this works as well: