Class problems
These classes are published classes, simply I am using them now, but cannot even get them to compile. So for example I get the following errors relating to member functions not being found. I have simplified the code such that one can see the point of failure. Does anyone know what is happening here to cause the failure.
Code: Code:
Edge.cpp |
The problem is that the operator functions take a Point&. This is Point reference, which means that the function can modify the variables passed to it. In this statement
Code:
0.5 * (org + dest); Code:
friend Point operator*(double, const Point&); |
All times are GMT -5. The time now is 02:16 AM. |