- Windows Develop
- File Size:
- Uploaded by:
Description: Project tasks
A function erase (x, y) is added to the class of single linked list to delete all nodes whose values are between [x, y]. Assuming that the numerical type of the node in the linked list is plastic, the program is required to return the length and elements of the linked list after deleting the corresponding nodes.
Enter a description
In the first line, enter the node element values of the linked list list, with spaces between the elements, and all of them are of type int;
In the second line, input X and y to indicate the minimum and maximum values of node elements to be deleted.
The first line outputs the length of the linked list after deleting the corresponding node;
The second line outputs all the elements of the linked list after deleting the corresponding nodes, with space between the elements. If there are no remaining elements, null is output.
(Click to check if it's the file you need, and recomment it at the bottom):
|qwer\main.cpp|| 671 || 2020-11-04
|qwer\sLinkList.cpp|| 614 || 2020-11-04
|qwer\sLinkList.h|| 234 || 2020-11-04
|qwer|| 0 || 2020-11-04|