Search:
Forum
Beginners
Bubble Sort function for linked list not
Bubble Sort function for linked list not working properly
May 16, 2020 at 8:48am UTC
Iveeerrr
(3)
[removed]
I realized that I made an embarrassing and simple mistake
Last edited on
May 16, 2020 at 7:30pm UTC
May 16, 2020 at 9:10am UTC
Repeater
(3046)
temphead = temphead->next;
You should only do this when you've finished swapping the values of two nodes. Right now, you do it a LOT.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs