In C++
create two structures. The first will be a structure called Point and will have as its data members an x and y coordinate. The second will be called Line and will have two Point structures as its data members.
The program should also have a function to getData from a user. The data will be two x and y coordinates. The program will then printData which will be the end points of a line.
For the purposes of this program, you can use the following as your main() function.
int main()
{
Line aLine;
aLine.getData();
aLine.printData();
return 0;
}