随即数附职出错!
#include <math.h>
main()
{
int i,j,m,n,t,a();
for(i=1;i<=10;i++)
{
a(i)=rand(); -- 这里出错 --
}
for (i=1;i<=9;i++)
{ for (j=2;j<=10;j++)
if ( a(i)<a(j) ) { t=a(i);a(j)=a(i);a(i)=t }
}
for (i=1;i<=10;i++)
printf("%d",a(i))
}