driver code missing i.e int main()
Closed this issue · 2 comments
NandanUpadhyay2611 commented
can anybody please help me run these programs such as insertion sort,bubble sort....in visual code, as no int main() is written here.
Telomelonia commented
@NandanUpadhyay2611
It's just non-returnable functions... Call them(check the parameters) when you want to sort the vector.
Use this main if you want to use:-
int main(){ vector<int> arr = {5, 2, 4, 3, 1}; bubbleSort(arr, arr.size()); for(auto i: arr) cout<<i<<endl; return 0; }
NandanUpadhyay2611 commented
thanks it was useful !