Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 33 / LAB 3 / CPOINT
.H//File CPoint.h
//Naznachenie: Proekt klassa "znachenija elementov"
//Author: Pavel Morozov
//Redakcija: 2.0 13.04.07
#ifndef cpoint_h
#define cpoint_h
#include<iostream.h>
#include<math.h>
#include<conio.h>
#include<stdio.h>
class CPoint
{
const unsigned int ID; // identifikacionnyj nomer objekta
static unsigned int HistNum; // obshee kolichestvo sozdannyh objektov
static unsigned int Counter; // kolichestvo sushestvujushih objektov
float x,y,fi,dx,dy; //znachenie
public:
//-------------------Konstruktory----------------------------------
CPoint(float x0=0,float y0=0); //Pervyj konstruktor
CPoint( CPoint &Q ); //Konstruktor kopirovanija
void SetX( float x0,float y0); //Zadanie znachenij elementov
void GetX( float &x0,float &y0); //Poluchenie znachenij elementov
void RotatePoint( CPoint &Q, float fi );
void MovePoint( float dx, float dy );
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-------------------------------------
~CPoint();
};
unsigned int CPoint::Counter=0;
unsigned int CPoint::HistNum=0;
#endif
Соседние файлы в папке LAB 3