/* ECP: FILEname=fig7_33.c */ /* 1*/ #define MaxShapes 1000 /* 2*/ void /* 3*/ OutputShapes( const double ShapeType[ ], /* 4*/ const double Areas[ ], double HowMany ) /* 5*/ { /* 6*/ int i, j; /* 7*/ printf( "\n" ); /* 8*/ for( i = Circle; i <= Square; i++ ) /* 9*/ { /*10*/ for( j = 0; j < HowMany; j++ ) /*11*/ if( ShapeType[ j ] == i ) /*12*/ { /*13*/ PrintShapeName( i ); /*14*/ printf( " area %.2f\n", Areas[ j ] ); /*15*/ } /*16*/ } /*17*/ }