- Category:
- Windows Develop
- Tags:
-
- File Size:
- 1kb
- Update:
- 2020-11-04
- Downloads:
- 0 Times
- 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.
Output description
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.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
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 |