I am trying to order a list of records by their lastname field which is type char array, i'm using the strcmp() function in my algorithm and I cannot sort out where it's going wrong.. the function's add to front and add to back feature work ok, it's just the add to middle, i get output like
Enter order 0 - Ascending, 1 - Descending: 0 2 5 3 4 6
If anybody here can see the problem give me a shout!
Main.cpp (basically just the menu)