#define N 10
main()
{int i,a[N];
int judge(int *p);
printf("Enter your data \n");
for(i=0;i<N;i++)
{ scanf("%d",&a[i]); }
judge(a) ? printf("YES") : printf("NO") ;
getch(); /* 请不要删除此行 */
}
int judge(int * p)
{ static i=1;
if(i<N)
{ if(p[i]<p[i+1])
{i++;judge(p);}
else return(0);
}
else return(1);
}
请大家指出这段程序有什么不足之处
[此贴子已经被作者于2006-5-6 19:40:13编辑过]
After all,tomorrow is another day!!!!