cin >> index; Shape * pobj = Shape::CreateShapeObject( int index ); pobj->PromptAndCompute(); delete pobj;
if( n == 5 ) { Sphere obj; obj.PromptAndCompute(); }
typedef struct _HashItem { char * key; void * pData; struct _HashItem * pNext; };
tests checked : 2,176,782,336 total matches : 144,840,476 elapsed time : 12.222
wx = ( thick - 1 ) * sqrt( Square(x2-x1) + Square(y2-y1) ) / ( 2*fabs(y2-y1) );
template< typename T > inline T Square( T a ) { return a * a; }
srand( 47 );
srand( time(nullptr) );
for( i = 0; i < 11; ++i )