#include using namespace std; void swapx(int &a, int &b) { int t = a; a = b; b = t; } void swapx(float &a, float &b) { float t = a; a = b; b = t; } int main() { int x=5,y=10; swapx(x,y); cout << x << ":" << y << endl; float xf=5.4,yf=10.1; swapx(xf,yf); cout << xf << ":" << yf << endl; return 0; }