0

C++ switch case issue with function and array

So I’m working on a project to sort arrays (first generated “randomly”) in 5 different methods(and measure time).I go to the point where all the functions are ok. I solved the issues of measuring their time but i wanted to add the options to chose the method of sorting arrays while using switch case.First I ask for the size of the array and fill out with numbers 1-999. I made a simple main page where you can chose the method etc but the program will not run. Having issues with case and array. Is it doable?

27th Jan 2019, 1:40 PM
Tom Lemke
Tom Lemke - avatar
7 Respostas
27th Jan 2019, 3:30 PM
Tom Lemke
Tom Lemke - avatar
0
this my code so far - dont mind the Polish text ^^”
27th Jan 2019, 3:31 PM
Tom Lemke
Tom Lemke - avatar
0
What i cant figure out is how to create a switch case for this so you can chose any of those 5 sorting methods. (maybe add randomize te array again, show the array and list the times)
27th Jan 2019, 3:35 PM
Tom Lemke
Tom Lemke - avatar
0
thanks a million!!!
28th Jan 2019, 6:18 PM
Tom Lemke
Tom Lemke - avatar