What is that code supposed to do? The first three lines are all one statement: struct Point {} class_A my_vector<Point>;
^ up to here this creates a variable class_A of type Point, but what
is the next bit for?
As for the second half, I'm not sure, since I don't know what class_A or my_classA are.
Are you sure that is C++ code? Perhaps I have misread something. :)
Provided that the code you posted is not the code you compile, this should be fine. Please post a compilable piece of code which reproduces the errors. It's hard to say now..
I cant to write the line :
Point3D my_point = w_points->vec_points3D[i];
I have the errors :
If I write :
W_geo::Point3D my_point = w_points->vec_points3D[n1];
conversion from 'std::vector<W_geo::Point3D>' to non-scalar type 'W_geo::Point3D' requested
And if I write another combinations I have
no matching function for call to ... candidates are ....
Line 10 says that vec_points3D is a pointer to a vector. Now, since w_points->vec_points3D is a pointer, [i] just does some pointer arithmetics. You just need to take that * in line 10 off.
Also, line 4 (second snippet). double = pointer + 100 ? What is that supposed to do..?