#include <iostream>
#include <string>
usingnamespace std;
struct Point {
int xpos, ypos;
};
struct Triangle {
Point a, b, c;
string color;
// Implement a default constuctor.
Triangle () {
a = { 0, 0 };
b = { 600, 600 };
c = { 600, 0 };
color = "yellow";
}
};
int main( ) {
// Probably a good idea to avoid this kind of name as it can be confusing.
Triangle triangles [22];
return 0;
}
I could use some help transferring these structs into svg format, without having to retype them all. It is supposed to be in a function as below. Ive been stuck on this for a few hours.