登录

int Count(struct IntNode *f)         {      //f为指向一个单链表的表头指针             int c=0;             while(f) {                 c++;                 f=f->next;             }             return c;         }     假定struct IntNode的类型定义为:         struct IntNode {int data; IntNode* next;};

查看答案:0.2积分