int max(int a,int b,int c)
{
return (a>b?a:b)>c?(a>b?a:b):c;
}
排序的话:void Sort(int a,int b,int c)
{
int t;
if(a>b) t=a,a=b,b=t;
if(a>c) t=a,a=c,c=t;
if(c>b) t=b,b=c,c=t;
printf("\n%d%d%d",a,b,c);
}
{
return (a>b?a:b)>c?(a>b?a:b):c;
}
排序的话:void Sort(int a,int b,int c)
{
int t;
if(a>b) t=a,a=b,b=t;
if(a>c) t=a,a=c,c=t;
if(c>b) t=b,b=c,c=t;
printf("\n%d%d%d",a,b,c);
}