用C++中引用交换两数: 在 “swap” 函数中交换两数,并在 “main” 函数中输出 #include <iostream> using namespace std; void swap(int &pa,int &pb){ int temp; temp=pa;