if:
typedef double p_3d[3]; and
struct triangle{
p_3d* points[3] // three points to p_3d
}
and I have a vector <p_3d> allPoints,
when I do triangle.points[0] = &(allPoints) I get
'&' requires l-value
what is the correct way to do this assignment?
thanks!
typedef double p_3d[3]; and
struct triangle{
p_3d* points[3] // three points to p_3d
}
and I have a vector <p_3d> allPoints,
when I do triangle.points[0] = &(allPoints) I get
'&' requires l-value
what is the correct way to do this assignment?
thanks!