Скачиваний:
10
Добавлен:
01.05.2014
Размер:
1.38 Кб
Скачать
//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