home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
microcrn
/
issue_44.arc
/
MICROCAD.ARC
/
CIRCLE.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1988-08-06
|
475b
|
22 lines
// Figure 5 for "A Little CAD with C++"
// Copyright 1988 Bruce Eckel
// Permission required to distribute source
// file: circle.hpp
#ifndef CIRCLE_HPP
#define CIRCLE_HPP
#include "cadshape.hpp"
#define x_radius 10
#define y_radius 10
class circle : public cadshape {
public:
void draw();
circle(unsigned x, unsigned y) : ()
{ x_center = x; y_center = y; draw(); }
void erase();
~circle() { erase(); }
};
#endif CIRCLE_HPP