[SOLVED] CS #include

$25

File Name: CS_#include.zip
File Size: 103.62 KB

5/5 - (1 vote)

#include

#include CRectangle.h

using namespace std;

void CRectangle::setValues(int w, int h)
{
this->width = w;
this->height = h;
}

CRectangle dupAndDouble(CRectangle other)
{
CRectangle copy;
copy.width = other.width * 2;
copy.height = other.height * 2;

return copy;
}

void CRectangle::convert(CSquare sqr)
{
this->width = sqr.side;
this->height = sqr.side;
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS #include
$25