Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 33 / LAB 3 / CCOLTRG
.H//File CColtrg.h
//Naznachenie: Proekt klassa "cvetnoj treugolnik"
//Author: Pavel Morozov
//Redakcija: 2.0 13.04.07
#ifndef CColtrg_h
#define CColtrg_h
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<stdio.h>
class CColor_Triangle: public CTriangle
{
int colour;
const unsigned int ID; // identifikacionnyj nomer objekta
static unsigned int HistNum; // obshee kolichestvo sozdannyh objektov
static unsigned int Counter; // kolichestvo sushestvujushih objektov
public:
//-------------Konstruktor---------------------------------------------
CColor_Triangle(int colour);
//---------------------------------------------------------------------
void OutList(int t);
int GetColour();
const unsigned int GetID();
// Poluchit dentifikacionnyj nomer objekta
static unsigned int GetHistNum();
// Poluchit obshee kolichestvo sozdannyh objektov
static unsigned int GetCounter();
// Poluchit kolichestvo sushestvujushih objektov
//------------Destruktor------------------------------------------------
~CColor_Triangle();
};
unsigned int CColor_Triangle::Counter=0;
unsigned int CColor_Triangle::HistNum=0;
#endif
Соседние файлы в папке LAB 3