哪里错了啊?
#include <stdio.h>void swap(int *p1,int *p2)
{
int k;
k=*p1;
*p1=*p2;
*p2=k;
}
void exchange (int *a1,int *a2,int*a3)
{
void swap(int *p1,int *p2);
if(*a1<*a2)swap(a1,a2);
if(*a1<*a3)swap(a1,a3);
if(*a2<*a3)swap(a2,a3);
}
void main()
{
void exchange (int *a1,int *a2,int*a3);
int i1,i2,i3,*b1,*b2,*b3;
printf("please input three number:");
scanf("%d,%d,%d",i1,i2,i3);
b1=&i1;b2=&i2;b3=&i3;
exchange(b1,b2,b3);
printf("the order is:%d,%d,%d\n",i1,i2,i3);
}