after the red marked call to function, i tried putting a cout, but it just skips it and teriminates the program without going back to main.

How does your program terminate? Does it get stuck in an infinite loop?

I also think you could organize your program differently. All the sort functions can be called by your object in main() and then return to main() when they are done. main() is supposed to be the air traffic controller. Instead, you are calling a function from main(), then jumping from inside that function to another function, and then doing it again, which is a mess to troubleshoot.