I cannot get started with this project. Can anyone help?
Create a file, link.h that contains the definition of a struct Node. Should have 2 parts data and link. Your link.h file should containg a prototype of three functions: delrep(), invert() and PRintlinked().
Create a file, link.cpp with the 3 functions.
Thedelrep has one paramater a head pointer to a linked list of ints. With a return type of delrep() of void.
The inver() has one parameter, a head pointer to a linked list of ints.
The function Printlinked() has one parameter, again a head pointer to a linked list of ints. Return type is void.
linktest.cpp should contain the main()function. Should create a list, call to print, then reverse the order , again call to print call delrep() to delter the duplicates and then call printlinked again to print again.
I have my printlinked funtion as:
for(cursor_headptr;cursoe !=NULL; cursor+cursor->link)
cout<<cursor->data<< " ";
Need help with delrep() and invert() & main.