fork download
  1. #ifndef POINT_H_INCLUDED
  2. #define POINT_H_INCLUDED
  3.  
  4. #define UNDEFINED 10e100
  5.  
  6. class Point
  7. {
  8. protected:
  9. double x;
  10. double y;
  11. public:
  12. Point();
  13. Point(double xvalue, double yvalue);
  14. void SetAll(double xvalue, double yvalue);
  15. double GetX(void) const;
  16. double GetY(void) const;
  17. double Distance(Point p);
  18. double Slope(Point p);
  19. };
  20. #endif
  21.  
  22.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty