void Print(struct node *head)
{
struct node *ptr;
if (head != NULL){
2 分
;
do {
printf ("%d\n", ptr->data);
2 分
;
} while ( 2 分
);
}
}
void Print(struct node *head)
{
struct node *ptr;
if (head != NULL){
2 分
;
do {
printf ("%d\n", ptr->data);
2 分
;
} while ( 2 分
);
}
}
void Print(struct node *head)
{
struct node *ptr;
if (head != NULL){
ptr = head;
do
{
printf ("%d\n", ptr->data);
ptr = ptr->next;
} while (ptr != NULL);
}
}