提示: 作者被禁止或删除 内容自动屏蔽
node_t * ChangeTwoNodes(node_t *list)
{
if( list )
{
for(node_t* pre=0,*ord=list,*post=list->next;
post; pre=ord,ord=ord->next,post=ord->next)
{
ord->next = post->next;
post->next = ord;
pre==0?list=post:pre->next = post;
}
return list;
}
else return 0;
}
----------------解决方案--------------------------------------------------------
难道没有区别么?
[color=white]
----------------解决方案--------------------------------------------------------
提示: 作者被禁止或删除 内容自动屏蔽