[SOLVED] CS #pragma once

$25

File Name: CS_#pragma_once.zip
File Size: 141.3 KB

5/5 - (1 vote)

#pragma once
#include CSquare.h
class CSquare;

class CRectangle
{
private:
int width;
int height;

public:
int area() const
{
return width * height;
}

void setValues(int w, int h);

// Non member function declared as friend to access private members of CRectangle
friend CRectangle dupAndDouble(CRectangle other);

void convert(CSquare sqr);
};

Reviews

There are no reviews yet.

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

Shopping Cart
[SOLVED] CS #pragma once
$25