Exercise:
1. Write a set of C++ codes to create a dynamic linked list as below.

2. Write a set of codes to print the list.
3. Write a set of codes to swap the nodes of "Tony" and "Roger".
4. Print the list again.
5. Write a set of codes to deallocate all dynamic memories.
Click here to see solution.