Y
yogi_bear_79
This is what i have so far. I am getting the following errors:
error C2511: 'int Point::getX(void)' : overloaded member function not
found in 'Point
error C2511: 'int Point::getY(void)' : overloaded member function not
found in 'Point
I am sure there are other issues, any tutoring would be helpful,
thanks
#include<iostream>
using namespace std;
#ifndef CartesianPoint
#define CartesianPoint
class Point
{
public:
void print(ostream& out)const;
Point();
Point(int x, int y);
int getX()const;
int getY()const;
void setX(int x);
void setY(int y);
private:
int myX, myY;
};
inline Point:oint()
{
myX = 0;
myY = 0;
}
inline Point:oint(int x, int y)
{
myX = x;
myY = y;
}
void Point::setX(int x)
{
myX = x;
}
void Point::setY(int y)
{
myY = y;
}
int Point::getX()
{
return myX;
}
int Point::getY()
{
return myY;
}
#endif
error C2511: 'int Point::getX(void)' : overloaded member function not
found in 'Point
error C2511: 'int Point::getY(void)' : overloaded member function not
found in 'Point
I am sure there are other issues, any tutoring would be helpful,
thanks
#include<iostream>
using namespace std;
#ifndef CartesianPoint
#define CartesianPoint
class Point
{
public:
void print(ostream& out)const;
Point();
Point(int x, int y);
int getX()const;
int getY()const;
void setX(int x);
void setY(int y);
private:
int myX, myY;
};
inline Point:oint()
{
myX = 0;
myY = 0;
}
inline Point:oint(int x, int y)
{
myX = x;
myY = y;
}
void Point::setX(int x)
{
myX = x;
}
void Point::setY(int y)
{
myY = y;
}
int Point::getX()
{
return myX;
}
int Point::getY()
{
return myY;
}
#endif