Добавил:
Angel_of_Death
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#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()
{
}