!Urgent! C++ bubble sort

I'm trying to apply a bubble sort on a linked list. It works in the first traversal, but then after the code cPtr = nPtr;, it inputs repeated digits at the end of the (semi-sorted) linked lists. Any help?

Last edited on
Move the lines 11 ... 14 after line 16
Topic archived. No new replies allowed.