Question: why is this not working bool Rivers::sameContinent ( std::string r 1 , std::string r 2 ) { std::string continent 1 = getContinent ( r 1

why is this not working bool Rivers::sameContinent(std::string r1, std::string r2)
{
std::string continent1= getContinent(r1);
std::string continent2= getContinent(r2);
if (continent1.empty()|| continent2.empty()|| continent1!= continent2){
return false;}
return true;
}

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!