Files
Avancerad_CPP/Lab4/point.cpp
2026-03-05 13:16:26 +01:00

84 lines
1.8 KiB
C++

//## begin module.cm preserve=no
// %X% %Q% %Z% %W%
//## end module.cm
//## begin module.cp preserve=no
//## end module.cp
//## Module: Point; Pseudo Package body
//## Subsystem: Figures
//## Source file: H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Point.cpp
//## begin module.additionalIncludes preserve=no
//## end module.additionalIncludes
//## begin module.includes preserve=yes
//## end module.includes
// Point
#include "H:\WebDocs\skola\Avancerad_C++\Lab4\Rose\Point.h"
//## begin module.additionalDeclarations preserve=yes
//## end module.additionalDeclarations
// Class Point
Point::Point()
//## begin Point::Point%.hasinit preserve=no
//## end Point::Point%.hasinit
//## begin Point::Point%.initialization preserve=yes
//## end Point::Point%.initialization
{
//## begin Point::Point%.body preserve=yes
//## end Point::Point%.body
}
Point::~Point()
{
//## begin Point::~Point%.body preserve=yes
//## end Point::~Point%.body
}
//## Other Operations (implementation)
int Point::getx ()
{
//## begin Point::getx%937398664.body preserve=yes
return x;
//## end Point::getx%937398664.body
}
int Point::gety ()
{
//## begin Point::gety%937398665.body preserve=yes
return y;
//## end Point::gety%937398665.body
}
void Point::setx (int src)
{
//## begin Point::setx%937398666.body preserve=yes
x=src;
//## end Point::setx%937398666.body
}
void Point::sety (int src)
{
//## begin Point::sety%937398667.body preserve=yes
y=src;
//## end Point::sety%937398667.body
}
// Additional Declarations
//## begin Point.declarations preserve=yes
//## end Point.declarations
//## begin module.epilog preserve=yes
//## end module.epilog