Question: With this code on C++: #include #include using namespace std; struct point { int x, y; }; int main() { point p; cout > p.x

With this code on C++:
#include Add-on or modify it so that when it outputs it tells the user which way to go. (For instance if the point selected is (1,2) and the nearest point is (3,4) the program will tell you to go to the RIGHT 2 and UP 2). Make sure to do this with all the points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
