Question: c++ Create a Stash class specifically for storing Rect objects and call it RectStash. Add a default constructor and a destructor to correctly initialize your

c++
Create a Stash class specifically for storing Rect objects and call it RectStash. Add a default constructor and a destructor to correctly initialize your RectStash class. Then write a program that will read several lines as input. Each line will contain 4 floats defining a 2D rectangle in the Rect format described above. Read the rectangles adding them to a RectStash object. Stop reading rectangles when your program loads 4 negative float values. After this point you will start reading a series of 2D points, and for each 2D point you will print the classification of each point in respect to all previously read rectangles. The classification should print "in" or "out" according to its result. Stop your program when you read vector (-99,-99). You can reuse your Rect.h and Vec.h files. Sample console output (program output is in boldface): 2 2 46 -4-4 8 6 -1-1-1-1 33 out out 0-6 out in 30 in out -99-99
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
