void swap1(int n1, int n2)
{
int temp = n1;
n1 = n2;
n2 = temp;
}
void swap2(int& n1, int& n2)
{
int temp = n1;
n1 = n2;
n2 = temp;
}
void swap3(int* p1, int* p2)
{
int temp = *p1;
*p1 = *p2;
*p2 = temp;
}
void swap4(int* &p1, int* &p2)
{
int *temp = p1;
p1 = p2;
p2 = temp;
}
习惯受伤