Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Objectives of Managerial Accounting in an organization

Answered: 1 week ago

Question

3. How has e-commerce transformed marketing?

Answered: 1 week ago