Question: I am trying to run this code with the catch.cpp.hpp that has the int main file in it. When the file compiles, it is not

 I am trying to run this code with the catch.cpp.hpp that
I am trying to run this code with the catch.cpp.hpp that has the int main file in it.
When the file compiles, it is not showing me the data in the correct order
How can I fix this issue?

re C selectionSort.h Olselectionsort cppolcatch.hpp.cpp TOHL CON IG MAIN rinclude cvector rinctude "cotch.hpp,cpp* sort ate],....a[size-1] in ascending order. void selectionSort (double o), int size) Last login: Tue Apr 1e 12119127 on ttyseee int 1, iMax double aTesp; for (int n size: i Harshs-Air: Harshs /Users/Harsh/DownLoads/selectionSort ALL tests passed (2 assertions in 1 test case Harshs-A?ris Harsh //find the index "ix" of the largest element smop a[iMax] with a [n-1] //Save a iMax) in a temporary location, / copy a[n-1] to a [Max) // copy saved value to a[n-1) oin-11- aTep using Catch:: Matchers: :Equals TEST_CASEC"selectionort) const int N 6; double xi[N]-[1.1,3.3,5.5,6.6,4.4,2.2); double x20N-(1.1,2.2,3.3,4.4,5.5,6.6 std:: vector double v1xl, x1+N) std:: vector vcx2, x2.N) REQU?RE-THAT(v1.not Equals(v2)); selectionSort (xl,N std: :vector

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!