#include<iostream>
using namespace std;
template<class Any>
void Swap(Any &a, Any &b);
int main()
{
int i = 20;
int j = 10;
Swap(i, j);
cout << i << "\t" << j<<endl;
cin.get();
cin.get();
return 0;
}
template<class Any>
void Swap(Any &a, Any &b)
{
Any temp;
temp = a;
a = b;
b = temp;
}
using namespace std;
template<class Any>
void Swap(Any &a, Any &b);
int main()
{
int i = 20;
int j = 10;
Swap(i, j);
cout << i << "\t" << j<<endl;
cin.get();
cin.get();
return 0;
}
template<class Any>
void Swap(Any &a, Any &b)
{
Any temp;
temp = a;
a = b;
b = temp;
}