#include <iostream>
#include <string>
#include <fstream>
using namespace std;
template <class T>
void mySwap(T& a, T& b)
{
T temp = a;
a = b;
b = temp;
}
int main()
{
int a = 10;
int b = 20;
mySwap(a, b);
string c = "hello";
string d = "world";
mySwap(c, d);
cout << a << " " << b << endl;
cout << c << " " << d << endl;
system("pause");
}