mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[CCV] Created subdirectories
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
17
ccv/sheet1/basics/Rectangle.cpp
Normal file
17
ccv/sheet1/basics/Rectangle.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
//
|
||||
// Created by jim on 4/4/17.
|
||||
//
|
||||
#include <iostream>
|
||||
#include "Rectangle.h"
|
||||
using namespace std;
|
||||
|
||||
Rectangle::Rectangle(unsigned int width, unsigned int height)
|
||||
{
|
||||
this->width = width;
|
||||
this->height = height;
|
||||
}
|
||||
|
||||
unsigned int Rectangle::area()
|
||||
{
|
||||
cout << this->width * this->height << endl;
|
||||
}
|
||||
Reference in New Issue
Block a user