xyz_size is not known ahead of time.
Type: Posts; User: aoiOnline
xyz_size is not known ahead of time.
Thanks for the replies.
I'm certain you are right. I'm not a programmer by training. I'm learning as I go.
Sorry for the confusion brewbuck. Either that or I don't understand your answer.
...
A semi-related question about choosing between double* and vector<double>. I was under the impression that using vector<double> makes a code run slower than if double* is used. Is this true? ...
Gotcha. Thanks for helping me out and bearing with a fledgling programmer.
Thanks. I hope I don't need an assignment operator for a double*. I'm rather sloppy when it comes to copy constructors and I try to pass variables as a reference as much as possible. Maybe it is...
Thanks very much guys for the instant answer. It's not impossible to use vector<double> but impractical in this case. Perhaps it's best to have a destructor as I think that would be the minimum...
Hi. I have a question related to memory allocation within STL vectors. I wonder if the way I am allocating memory is correct and if de-allocation is being handled.
I am trying to use a...