Plazma sayı 2, sayfa 140

Bu sayfadaki yazılar

Sayfanın metni

Sayfa 140

/** * Icerikler */ #include #include #include

/** * Tanımlar */ #define CHAR03 0x03 #define INT_VIDEO 0x10 #define VGA13 0x13

/** * Sınıflar */

// POINT2D Sınıfı class POINT2D { public: POINT2D(); POINT2D(POINT2D *p2dPoint); POINT2D(int xVal, int yVal); ~POINT2D(); int getX(); int getY(); void setX(int newX); void setY(int newY); private: int x; int y; };

void POINT2D::POINT2D() { // Boş } void POINT2D::POINT2D(POINT2D *p2dPoint) { x = p2dPoint->x; y = p2dPoint->y; } void POINT2D::POINT2D(int xVal, int yVal) { x = xVal; y = yVal; } void POINT2D::~POINT2D() { // Boş } int POINT2D::getX() { return x; } int POINT2D::getY() { return y; } void POINT2D::setX(int newX) { x = newX; } void POINT2D::setY(int newY) { y = newY; }

Klavyeyle gezinmek için ← ve → tuşları.