Whlg. Class Point point.h

#ifndef __POINT_H__
#define __POINT_H__

#include<iostream.h>
#include<math.h>

#ifndef PI
#define PI 3.1415926535897932385E0
#endif

class Point
{
private: 
  int x,y;
public:
  Point(const int X=0);
  Point(const int, const int);
  Point(const Point&);
  ~Point();
        
  void assign(const int, const int);
  float distance(const Point& p);
        
  static int number;
  friend Point operator +(const Point, const Point);
  friend ostream& operator<<(ostream&, const Point&);
  friend class OrtRect;
};
#endif

previous up next


© 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 12/16/1998