- Is it guaranteed to safe passing [c ] POD types to [c] or vise versa? [closed]
- Class Point {
- long x,y;
- Point(long x, long y) {
- this->x=x;
- this->y=y;
- }
- float Distance(Point &point) {
- return ....;
- }
- };
- struct point {
- long x,y;
- };
- struct point
- {
- long x, y;
- };
- class Point : public struct point
- {
- public:
- Point(long x, long y)
- { this->x=x; this->y=y; }
- float Distance(Point &point)
- { return ....; }
- }