<ignore previous cos of typos>
ok, now that you explain the application, it does not look like a stress test anymore.
so
typedef double p_3d[3];
is fixed.
And you dont want duplications so
you want AllPoints to keep all-the-points
while the triangles are formed using pointers to these...
ok, now that you explain the application, the it does not look like a stress test anymore.
so
typedef double p_3d[3];
is fixed.
And you dont want duplications so
you want AllPoints to keep all-the-points
while the triangles are formed using pointers to these points. Am i right ?
how about...
I have been working on C compiler for quite some time so i got to learn a bit of the dark side of C/C++. If you have a question feel free to ask, and through you i may learn quite a bit.
Hi
actually your usage seems to smell of stress testing, rather than typical usage. But thats ok.
Using vector<T> where T is any type (such as your p_3d) is fine. T need not be an explicitly defined class. I have used vector<int> successfully many times.
One would typically use vector...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.