listnode *p = head while(p!=null) { p=p->next; if(p==head) { print("是循环链表"); break; } } if(p==null) {print("是普通链表");}