Possible Duplicate:
Getting array from std:vector
I've been reading the answers to this question and found them useful, but how can I do the same with a float type?
The same thing.
std::vector<float> v(10);
float *p = &v[0];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With