C++ Source

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

#include <iostream> using namespace std; template <class T> class Bucky { private: T first, second; public: Bucky(T

a, T b): first(a), second(b){ } T bigger(); };

template <class T> T Bucky<T>::bigger(){ return(first>second?first:second); }

int main() { Bucky<int> bo(2,3); cout<< bo.bigger()<<endl; system("pause"); return 0; }

You might also like