Добавил:
Angel_of_Death
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#include "stdafx.h"
#include "Base.h"
#include <iostream>
using namespace std;
Base::Base()
{
l = 0;
h = 0;
ost_h = 0;
}
void Base::SetLH(double _l, double _h)
{
l = _l;
h = _h;
ost_h = h;
}
double Base::GetL()
{
return l;
}
double Base::GetH()
{
return h;
}
double Base::GetOstH()
{
return ost_h;
}
void Base::ChangeOstH(double H)
{
ost_h = ost_h - H;
cout << "Places left: " << ost_h << endl;
}
Base::~Base()
{
}