Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
4
Добавлен:
18.08.2019
Размер:
850 б
Скачать
#ifndef PRECOMP_H_INCLUDED
#define PRECOMP_H_INCLUDED

#include <iostream>
#include <string>
#include <windows.h>
#include <math.h>
using namespace std;

class point// точка
{
public:
    float x,y;
    point(float xn = 0.0, float yn = 0.0);
    void print_point();
};

class rectangle// прямоугольник
{
private:
    point upleft, dnrite;
    const int static arrsize;
    string colour;
public:
    rectangle();
    rectangle(point ul, point dr, string cl);
    rectangle(float ulx, float uly, float drx, float dry, string cl);

    void get_upleft();
    void get_dnrite();
    void get_colour();
    void get_square();
    void get_motion();
    void cornerings();
    void changecolr();
    void lenhthdiag();
    void everyelmnt();

friend void isitsquare(rectangle R);
};

#endif // PRECOMP_H_INCLUDED
Соседние файлы в папке Classes_modification_lab3