#include <stdio.h>
int charge(int p[], int n) {
int m = 0;
if (m == n - 1)
return 0;
else {
if (p[m] < p[m + 1]) {
m = m + 1;
return charge(p, n);
} else
return 1;
}
}
int main() {
int a[100], i, j;
gets(a);
j = charge(a, i);
if (j = 0)
printf("true\n");
else
printf("false\n");
return 0;
}
标签:判断,return,int,else,charge,printf,升序 From: https://blog.51cto.com/u_16030624/7439783