/* PISTE3ALI.CPP */ #include #include "piste2ali.h" class cPiste { int x,y; public: virtual void siirra(int nx, int ny=0) { x=nx; y=ny; } cPiste(int nx=0, int ny=0) { x=nx; y=ny; } cPiste(const tPiste *p) { x=p->x; y=p->y; } void tulosta() const; }; void cPiste::tulosta() const { printf("(%d,%d)\n",x,y); } extern "C" void tulosta(const tPiste *p) { cPiste ap(p); ap.tulosta(); }