#include <iostream>
using namespace std;
template<class t>
class bucky
{
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(69,105);
cout << bo.bigger();
}
网友评论