Question: Add a Point 2 D struct to the Graphics project. Right - click the project, select Add - > New Item. Name the file Point

Add a Point2D struct to the Graphics project. Right-click the project, select Add->New Item. Name the file Point2D.h.
Add 2 fields: x and y. The type of these fields is int. (They need to be visible outside of the struct)
Add a constructor that takes 2 int parameters. Use these to initialize x and y.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!