Assume two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order. Assume that values for x always precede y

.
.
Click on the title for the solution
.
.

This is the answer:

:
cin>>p1.x>>p1.y>>p2.x>>p2.y;

Comments