Question: Write in C++ Create 100 random numbers of value 100-150 as elements in a .txt file Read values from the file to create a class
Write in C++
- Create 100 random numbers of value 100-150 as elements in a .txt file
- Read values from the file to create a class of singular linked list in sorted order and print forward and backward of the list. Create a member function to insert 1000 in the 41st element of the list. Print the final list using an iterator class.
- Read values from the file to create a template class of doubly linked list and print forward and backward the list. Create a member function to delete all the elements in the range 120-130. Print the shortened list using an iterator class.
- Read values from the file to create a class of circular linked list and print forward and backward the list. Search element 135 using a member function and if present replace it (and duplicates) with 150. Print the final list using an iterator class.
- Code to create a linked list say having 5 nodes using static allocation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
