#include
template
class Sample
{
T n;
public:
Sample(T i){
n=i;
}
int operator==(Sample &s)
{
if(n==s.n)
return 1;
else
return 0;
}
};
int main()
{
Sample s1(2),s2(3);
cout<<(s1==s2)< Sample s3(2.5),s4(2.5);
cout<<(s1==s2)< }
0
0