int main() { testSwap(); testBuildMaxHeap(); testMaxHeapify(); testMerge(); testBubbleSort(); testSelectSort(); testInsertSort(); testMergeSort(); testHeapSort(); return 0; }
int main(int argc, char *argv[]) { char *filename; if (argc > 1) { filename = argv[1]; } else { filename = "plaetzchen.txt"; } testBubbleSort(); testStringBubbleSort(filename); testMergeSort(); return 0; }
int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; testInsertionSort(); testInsertionSortNonIncreasing(); testMergeSort(); insertionSortRecursion a; a.test(); twoSum ts; ts.test(); MergesortWithInsertionSort mwis; mwis.test(); BubbleSort bs; bs.test(); return 0; }