ok im trying to fix the code of three classes and i've managed to fix every error but 4. all 4 errors are the same just in different spots of 2 functions in a class. the errors are
Code:
D:\classesexamples\geometry\Box.cpp(49) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class Point' (or there is no acceptable conversion)
and the source code that it points to is
Code:
void Box::getCorners(Point& a, Point& b) {
corner1 = a;
corner2 = b;
cout << corner1 << endl;
cout << corner2 << endl;
}
void Box::print() {
cout << corner1 << endl;
cout << corner2 << endl;
}
i just dont get why it says there is and error with <<