Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Merging two linked lists C++

Name: Al-Jazeera 2013-04-27 20:41

Hello /prog/

I'm having some trouble with a function that is supposed to merge two linked lists. I'm being passed two Linked Lists as parameters and want to know an efficient way of making it so that I can merge these two lists together (duplicates are allowed) without using an insert function. The code that I have is here:
http://pastebin.com/RtUGcYhy

Any help/suggestions/criticism will be appreciated.

Name: Anonymous 2013-04-28 3:46

You should avoid writing your own code when you can just use the standard library. It has platform-specific optimizations, and is much easier to maintain.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List