输入三个整数,按从小到大的顺序输出
两个问题1.
scanf("%d%d%d",*p1,*p2,*p3);
改为
scanf("%d%d%d",p1,p2,p3);
2.调用函数swap时直接传入指针,把*去掉,改为swap(p1,p2)
swap调用不需要写星号,直接swap(p1,p2)