Hi, I need help in getting my code to output the required text as shown below.
Problem is in my class line constructor, I'm stuck at the moment on how to achieve the output as shown. If anyone could help, I would really appreciate it. Thanks.
Output required:
1 //Ok
Shape() Polygon() Line() //Ok
4 //Ok
Line(Polygon(Shape(Color(0,0,0)) Point(0,0) Point(0,0))) // Not ok
Hi lastchance, I'm confused becoz of this-> Polygon(Shape(Color(0,0,0)). So for this do I explicitly type out Polygon(Shape(Color(0,0,0)) in my cout? Thanks btw.