right i'm a bit confused has to how to fix this error i've got -
when using -
with the class definition -
error C2270: 'getx' : modifiers not allowed on nonmember functions
when using -
Code:
float getx() const // return x coord of point
{
float getX(); // not sure what to put in here tbh
}
Code:
public:
Point(float x, float y, float z); // Construct from 3 floats
float getx() const; // return x coord of point
Last edited: