Answer:
- #include <iostream>
- using namespace std;
- struct Point{
- double x;
- double y;
- };
- int main()
- {
- Point origin;
- origin.x = 0;
- origin.y = 0;
- return 0;
- }
Step-by-step explanation:
The solution code is written in C++.
Firstly, we create a data structure Point with two fields, x and y (Line 5 -8).
In the main program, declare an origin object with Point type (Line 12).
Set the x and y fields of origin object to zero using dot syntax (Line 13-14).