CS计算机代考程序代写 #include

#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;
}

Leave a Reply

Your email address will not be published. Required fields are marked *