Given a number x, write a program to delete all occurrences of x from a linked list
in one iteration. That is, you can not scan the list more than once.
It only deletes the first occurrence of X, can someone help fixing it please?
Are you sure that the function isn't working? This will say
"Could not find << X << in the list"
every time because the cout statement is below the loops. Just a suggestion. :)