I'm trying some code with classes but get these errors:
overloaded member function not found in 'Point'
'Point' : no appropriate default constructor available
#include <iostream>
using namespace std;
class Point
{
public:
Point(float f_x, float f_y, float f_z);
private:
float x, y, z;
protected:
};
Point::Point()
{
cout << "We're in the default constructor" << endl;
}
Point::Point(float f_x, float f_y, float f_z)
{
cout << "We're in the constructor with arguments" << endl;
}
void main()
{
Point myLocation;
}
Anyone see where I'm going wrong?