template <typename T>//
void Swap(T&a,T&b)
{
T t = a;
a = b;
b = t;
}
void main()
{
int a=1;
int b=2;
double c=3;
double d=4;
Swap(a,b);
Swap<double>(c,d);
}
template <typename T>//
void Swap(T&a,T&b)
{
T t = a;
a = b;
b = t;
}
void main()
{
int a=1;
int b=2;
double c=3;
double d=4;
Swap(a,b);
Swap<double>(c,d);
}