Skip to main content
1 vote

How to merge sort array of struct while maintaining relations between int array and char array

each instance of nameandnum is a complete object, when you do your merge sort you need to swap the whole objects not just the buffer field.
UpAndAdam's user avatar
  • 1,466

Only top scored, non community-wiki answers of a minimum length are eligible