单链表偶数节点的数值和-
找出单链表中,所有偶数的节点的数值和。int fun(NODE *h){int sum=0;NODE *p;p=h->next;while(p){if(p->data%2==0) sum+=p->data;p=p->next;}}