![]() |
|
[C] Issues With Merge Sort Function - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Issues With Merge Sort Function (/showthread.php?tid=6051831) |
Issues With Merge Sort Function - Sмℯґƒ - Feb 22, 2020 So for a class assignment we have to merge sort a vector of custom classes called Record. I think I'm having an issue when it comes to merging back together the split L/R sections. Heres my driver code: Code void CensusData::mergeSort(int /*type*/)Code void CensusData::mergeSortPop(vector<Record*>, int p, int r)RE: Issues With Merge Sort Function - SIM-3991524 - Feb 22, 2020 Maybe you could post more of the code? Working mergesort with your Record class Spoiler (Click to View) Example output Spoiler (Click to View) |