Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Sem4 / Sem4 / Formula

.cpp
Скачиваний:
0
Добавлен:
10.04.2019
Размер:
438 б
Скачать
#include "stdafx.h"
#include "Formula.h"
#include <iostream>

using namespace std;

Formula::Formula()
{
}

int Formula::Set(double _l, double _h, Base b)
{
	l = _l;
	h = _h;
	if ((b.GetOstH() >= h)&&(b.GetL() >= l))
	{
		cout << "This formula can be placed in this document\n";
		return 0;
	}
	else
	{
		cout << "This formula can not be placed in this document\n";
		return -1;
	}
}

Formula::~Formula()
{
}
Соседние файлы в папке Sem4