void Print_Doubly_linked_list_reversely(Doubly_linked_list *ptr)
{
i don't know how can i write in here
}
1 2 3 4 5 6 7 8 9 10 11 12
int main()
{
int num;
Doubly_linked_list *headPtr;
Doubly_linked_list *newPtr;
cout<<"How many items you want to create? ";
cin>>num;
headPtr= Create_Doubly_linked_list(num);
Print_Doubly_linked_list(headPtr);
Print_Doubly_linked_list_reversely(headPtr);
return 0;
}
the output sample according to the above code is:
[0]->[1]->[2]->Null
but how can i modify the code in order to print out
"[0]->[1]->[2]->Null
[2]->[1]->[0]->head "
by using doubly linked list?
i would be very appreciate if someone can help me ,thanks X 10000