0
Can someone tell me what is output of this coding
template <class T> class Pair { private: T first, second; public: Pair (T a, T b): first(a), second(b){ } T bigger(); }; template <class T> T Pair<T>::bigger() { return (first>second ? first : second); }
2 Réponses
+ 1
There simply is no output. In this code you are just declaring.
+ 1
The output of this, if the variables would be declared would be the bigger variable.