#include using namespace std; template void swapEverything(T &a,T &b) { T c = a; a = b; b = c; } template void printVariables(anotherName a, anotherName b) { cout << a << " " << b << endl; } int main() { int a=5; int b=10; printVariables(a,b); swapEverything(a,b); printVariables(a,b); float c=1.2; float d=7.5; printVariables(c,d); swapEverything(c,d); printVariables(c,d); return 0; }