没运行过,这是我的想法,可以参考下。
struct Node
{
int data;//数据域
structNode *next;//指针域
};
//是单调递增则返回1,其它返回0
int check_increasing(Node *start)
{
int dizeng=1;
int data=start->data;
start = start->next;
while(start->next != 0)
{
if(start->data
{
dizeng = 0;
break;
}
start = start->next;
}
return dizeng;
}