Assume that a new type called POINT has been defined– it is a structure consisting of two fields, x and y, both of type double. Assume two variables p1 and p2 of type POINT have been declared. Assume that p1 has already been initialized. Write a statement that gives p2 the same value that p1 has.

C++

LANGUAGE: C++ CHALLENGE: Assume that a new type called POINT has been defined– it is a structure consisting of two fields, x and y, both of type double. Assume two variables p1 and p2 of type POINT have been declared. Assume that p1 has already been initialized. Write a statement that gives p2 the same…

Read More