Question: I need help with this C++ program. I am just lost here and need someone to explain the entire process so I can hopefully understand
I need help with this C++ program. I am just lost here and need someone to explain the entire process so I can hopefully understand it. Please and thank you to whoever helps.
I don't think it relates to my previos exercise but I am not to sure. It does ask me to creat two separate programs and compare the two but I am lost on how I am suppose to do that?
Exercise 7: Comparison (10 points) For this exercise, create 2 programs defined in files slow.cpp and fast.cpp. In slow.cpp, generate a random array of size 200,000 and pass it to your sorting algorithm. Run the program and observe that it never ends. Press CTRL C to terminate the process. In fast.cpp, generate a random array of size 200,000 and pass it to the sort routine that is part of the C++ standard library. The following code shows how you would call the sort function on an array a of size 200,000. sort (a, a 200000); If the above line fails to compile, you may need to include the algorithm header as follows. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
