SyntaxFix
Write A Post
Hire A Developer
Questions
vector<double> thevector; //... double *thearray = &thevector[0];
This is guaranteed to work by the standard, however there are some caveats: in particular take care to only use thearray while thevector is in scope.
thearray
thevector