#include // EXIT_SUCCESS #include // cout, endl using std::cout; using std::endl; void Swap(int& x, int& y) { int tmp = x; x = y; y = tmp; } int main(int argc, char* argv[]) { int a = 5, b = 10; Swap(a, b); cout << "a: " << a << "; b: " << b << endl; return EXIT_SUCCESS; }