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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
