<iostream>
using namespace std;
template< class T1, class T2 >
class Test
{
T1 a;
T2 b;
:
Test(T1 x,T2 y)
{
a=x;
b=y;
}
show()
{
cout << a << "and" << b << "\n";
}
};
main()
{
Test <,> test1(1.23,123);
Test< , > test2(100,'w');
test1.show();
test2.show();
};
|