| [CODE]
/*
классы для рисования 3-мерных фигур
*/
#ifndef OBJ_DIM
#define OBJ_DIM
#include <vcl.h>
class Tobj_dim : TObject
{
public:
static int xc;
static int yc;
static int zc;
static int lzrit;
virtual void Draw()=0;
private:
TCanvas * Canva; //на чем рисовать
};
class TPoint_dim : private TObj_dim
23: {
public:
void perenosX(float dx){x+=dx;}
void perenosY(float dy){y+=dy;}
void perenosZ(float dz){z+=dz;}
void rotateX(float phi,float *x,float *y,float* z,int xc,int yc,int zc);
void rotateY(float phi,float *x,float *y,float* z,int xc,int yc,int zc);
void rotateZ(float phi,float *x,float *y,float* z,int xc,int yc,int zc);
/* void GetCoord(int * x,int *y,int *z);
void SetCoord(int x,int y,int z) pz:z,py:y,px:x {};
*/
TPoint_dim(int x0,int y0,int z0) :z(z0),y(y0),x(x0) {};
37: void SetCanvas(TCanvas A):Canva(A);
void Draw();
float x,y,z;
TPoint_dim operator=(TPoint_dim);
// __property float X={write};
private:
// float px,py,pz;
};
[/CODE]
Ошибки
[C++ Error] Classes_dim.hpp(23): E2303 Type name expected
[C++ Error] Classes_dim.hpp(37): E2293 ) expected | |