Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 32 / testgr / CText
.cpp
#include "CText.h"
CText :: CText():ShapePosition()
{ str="";
Height=8;
}
CText :: CText(int _X,int _Y,std::string _Str):ShapePosition(_X,_Y)
{
str=_Str;
Height=8;
}
CText ::~CText()
{}
void CText :: SetStr(std::string _Str)
{
str = _Str;
}
void CText :: SetHeight (int _Height)
{
Height = _Height;
}
std::string CText :: GetStr() const
{
return str;
}
int CText :: GetHeight() const
{
return Height;
}
int CText::getNumType()
{ return 1;
}
void CText::display(std::ostream& os)
{
os <<"Class CText Information:"<<std::endl<<
"Height: " << GetHeight() <<std::endl<<
"String: " << GetStr() <<std::endl;
}
Соседние файлы в папке testgr