/* ECP: FILEname=fig8_38.c */ /* 1*/ #include /* 2*/ #define Pi 3.1416 /* 3*/ #define NoArea ( -1.0 ) /* 4*/ enum { Circle, Rectangle, Square }; /* 5*/ /* Names Must Be in The Same Order As enum List */ /* 6*/ static char *ShapeNames[ ] = /* 7*/ { /* 8*/ "circle", /* 9*/ "rectangle", /*10*/ "square", /*11*/ }; /*12*/ #define DiffShapes ( sizeof ( ShapeNames ) / sizeof( char * ) )