void swap(int& y, int& x) { cout << "Results before swap" << endl << "y: " << y << " x: " << x << endl; int temp; temp = y; y = x; x = temp; cout << "Results after swap" << endl << "y: " << y << " x: " << x << endl; }