home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_44.arc / MICROCAD.ARC / CIRCLE.HPP < prev    next >
C/C++ Source or Header  |  1988-08-06  |  475b  |  22 lines

  1. // Figure 5 for "A Little CAD with C++"
  2. // Copyright 1988 Bruce Eckel
  3. // Permission required to distribute source
  4.  
  5. // file: circle.hpp
  6. #ifndef CIRCLE_HPP
  7. #define CIRCLE_HPP
  8. #include "cadshape.hpp"
  9.  
  10. #define x_radius 10
  11. #define y_radius 10
  12.  
  13. class circle : public cadshape {
  14.   public:
  15.     void draw();
  16.     circle(unsigned x, unsigned y) : () 
  17.         { x_center = x; y_center = y; draw(); }
  18.     void erase();
  19.     ~circle() { erase(); }
  20. };
  21. #endif CIRCLE_HPP
  22.