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
and the source code that it points to isCode: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)
i just dont get why it says there is and error with <<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; }



LinkBack URL
About LinkBacks



(someone more experienced correct if not). Hope that helps.
CornedBee
Forgot that. Thanks for the correction.