Скачиваний:
12
Добавлен:
01.05.2014
Размер:
645 б
Скачать
#include <ColorRound.h>

ColorRound::ColorRound(){
color=1;
//cout<<"Color round "<<getid()<<" was created"<<endl;
}

ColorRound::ColorRound(const Point &O, const double radius0, const int color0, int &id){
SetCenter(O);
SetRadius(radius0);
color=color0;
SetId(id);
//cout<<"Color round "<<getid()<<" was created"<<endl;
}

ColorRound::~ColorRound(){
//cout<<"Color round "<<getid()<<" was destroyed"<<endl;
}


inline void ColorRound::SetColor(const int color0){
color=color0;
}


inline const int ColorRound::GetColor(){
return color;
}

void ColorRound::printing(){
print();
cout<<"Color is "<<color<<endl;

}
Соседние файлы в папке Лабораторная работа 3