/**
* 遍历打印
*/
void print(LinkList list)
{
if (list == NULL)
printf("param error!\n");
LinkList temp = list->next;
while (temp != NULL)
{
printf("%d, ", temp->data);
temp = temp->next;
}
printf("\n");
}
网友评论