cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
!Urgent! C++ bubble sort
!Urgent! C++ bubble sort
Feb 27, 2015 at 5:18am UTC
LA101
(10)
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
Feb 27, 2015 at 4:04pm UTC
Feb 27, 2015 at 8:33am UTC
coder777
(8444)
Move the lines 11 ... 14 after line 16
Topic archived. No new replies allowed.