不好意思写错了 用整形存临时量就可以了 粗心了偶怎么弄出了个野指针

void swap(int*p,int*q)
{
int temp;
temp=*p;
*p=*q;
*q=temp
}

unicorn-h.spaces. ◇◆ sava-scratch.spaces. noh enol ! pue pu!w hw u! shemle aq ll!m noh