I've been reading quite alot but i still cannot understand the use of structures.
I'm given the following exam:
You have to find the frontage and the perimeter of triangle ,that is composed in coordinate plane 0xy,by inputting edge ( the edge is C for example of A,B,C).
I have to be using structure for POINT and TRIANGLE.This means that the edge of the triangle is not regular variable but member-variable of structure.I'm obligated to define structure for point with member-variable xc and yc - coordinates of point.
I'm still struggling to understand what am i obligated to actually do.The part with the structures is really confusing me ... anyone can clarify it to me or show it with an example so i can try something and post my code here for checkup ..
By now i know only how to input the libraries and calculate the frontage and the perimeter ( the noobie stuff).
Thanks in advance
I'm given the following exam:
You have to find the frontage and the perimeter of triangle ,that is composed in coordinate plane 0xy,by inputting edge ( the edge is C for example of A,B,C).
I have to be using structure for POINT and TRIANGLE.This means that the edge of the triangle is not regular variable but member-variable of structure.I'm obligated to define structure for point with member-variable xc and yc - coordinates of point.
I'm still struggling to understand what am i obligated to actually do.The part with the structures is really confusing me ... anyone can clarify it to me or show it with an example so i can try something and post my code here for checkup ..
By now i know only how to input the libraries and calculate the frontage and the perimeter ( the noobie stuff).
Thanks in advance