I again appeal for the help of the community. I have an assignment to assign 10 integers to a silgly linked list FROM A FILE! than I have to copy the singly linked list to a boubly linked list and reverse it.
My problems are: First I don't have Idea how to assign values from a file into the nodes of the linked list. should I first create an int array and to pass the content of the array into the linked list? Or there is any other way?
Second when I create functions for copying and reversing linked lists I pass there the list where I'm copying from DNodePtr copyToDoulby(NodePtr head) to copy it to the DNode the compiler gives me the mistake that "struct Node’ has no member named ‘DNodeData’" But it shouldn't occur because the function is of DNode type. Isnt it?
If anybody can give me a hint with these 2 problems i would be so grateful.
Thanks in advance for your time and suggestions
Radovan