大哥大姐 帮忙看看是怎么回事
#include <stdio.h>void fun(int & x,int & y)
{
int t;
t=x;x=y;y=t;
}
void main ()
{
int a,b,c;
printf("please input a b c number :\n");
scanf("%d%d%d",&a,&b,&c);
if (a<b)
fun(a,b);
if (b<c)
fun(b,c);
if (a<b)
fun(a,b);
printf("the sort number is %3d%3d%3d",a,b,c);
}
怎么和没有调用一样啊