利用swap函数理解值传递、地址传递
#include <iostream>using namespace std;int a = 1, b = 2;void swap(int a, int b);//pass by valuevoid swap(int a, int b){ int temp; temp = a; a = b; b = temp; cout << "pass by value: a" << a <&