Question: use c++ fill out the code: // Now write a function to initialize a box. // You'll need to initialize the upper left x and
use c++ fill out the code:
// Now write a function to initialize a box. // You'll need to initialize the upper left x and y, // the width and the height. // Note: there is a struct Point inside the struct Box. // So here's a clue: For the x value, use (*b). ul. x or (b->ul). x // The y value is similar. // There is also a way to "reuse" initPoint, if you are feeling // confident in your understanding of pointers and structs. void initBox(struct Box b, double ulx, double uly, double w, double h ) { return ; \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
