Linear Search Add to a print member fuction. The function should display all the values in the
Fantastic news! We've Found the answer you've been seeking!
Question:
Linear Search
Add to a print member fuction. The function should display all the values in the linke list. In addition, include a member function named search tha return the position of specific value, x, in the linked list. The first node in the list is at position 0, the second node is at position 1, and so on. If x is not found on the list, the search should return -1, Test these member functions using an appropiate driver program.
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date: