Question: Hii so just found this test code and I'm trying to test run it but it says fatal error (no such file or directory) What

Hii so just found this test code and I'm trying to test run it but it says fatal error (no such file or directory) What should I do?

Code and screenshot at the bottom. Thanks!...

Rectangle.h

#ifndef RECTANGLE_H_ #define RECTANGLE_H_ // Rectangle class declaration. class Rectangle { private:

double width;

double length;

public:

void setWidth(double);

void setLength(double);

double getWidth() const;

double getLength() const;

double getArea() const;

};

#endif /* RECTANGLE_H_ */

Rectangle.cpp

#include "Rectangle.h" //**************************************************

// setWidth assigns a value to the width member. *

//**************************************************

void Rectangle::setWidth(double w)

{

width = w;

}

//**************************************************

// setLength assigns a value to the length member. *

//**************************************************

void Rectangle::setLength(double len)

{

length = len;

}

//**************************************************

// getWidth returns the value in the width member. *

//**************************************************

double Rectangle::getWidth() const

{

return width;

}

//****************************************************

// getLength returns the value in the length member. *

//****************************************************

double Rectangle::getLength() const

{

return length;

}

//*****************************************************

// getArea returns the product of width times length. *

//*****************************************************

double Rectangle::getArea() const

{

return width * length;

}

main.cpp

#include #include #include "Rectangle.h" using namespace std;

//***************************************************** // Function main * //*****************************************************

int main() { double number; unique_ptr rect(new Rectangle); cout

// Get the kitchen dimensions. cout > number; // Get the length rect->setLength(number); // Store in kitchen object cout > number; // Get the width rect->setWidth(number); // Store in kitchen object cout getWidth()getLength()getArea()

return 0; }

Hii so just found this test code and I'm trying to test

main.cpp lappRectangle] - Code:Blocks 20.03 File Edit View Search Project Build Debug Fortran wxSmith Tools Tools+ Plugins DoxyBlocks Settings Help Debug PR . . YA OSCI DOO SC Management main.cpp X Projects Files ry 34 Workspace 35 BappRectangle 36 // setWidth assigns a value to the width rcmber. Sources 37 36 main.cpp 39 void Rectangle::setWidth (double w 41 42 ! width - W 45 -) 48 // setLength assigns a value to the length member. * 50 51 52 53 54 55 56 void Rectangle::setLength (double len EN length - len 56 59 60 81 62 in immer Geopex Debugger X DaxyBlocks X F Fartran into X Logs & others - Code:Blocks X Search results X Cock X O Build log x Build messages CppCheck/Vera++ x CopCheck/Vera++ messages X File Line Message -- Masid: Debra in AppRectangle compiler: GHI GOC Compiler) --- C:\DACES 93 Latal CELOR: Local CEZDE: Recengle. Me auch ile os de TOEY --- Build failedi 1 error(s). O warning 15) 10 minute(s), o second(s)) --- C/C++ Windows (CR+LF) WINDOWS-1252 Line 46, Col 2, Pos 633 Insert Read/Wnte default C\Users\/mfsa OneDrive Desktop Coding Projects Comps 255\applectangle main.cpp Type here to search O Ei 9:06 PM 2/8/2021

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!