/* PISTEPRI.CPP */ #include struct cPiste { void tulosta() const { printf("(%d,%d)\n",x,y); } void aseta(int nx,int ny) { x=nx; y=ny;} private: int x,y; }; int main(void) { cPiste p; p.aseta(3,2); p.tulosta(); p.aseta(7,1); p.tulosta(); return 0; }