int *returnVector(int &dimension) {
dimension = 100;
int *ret = new int[dimension];
return ret;
};
you will have in <dimension> the vector's dimension and in the return value, an array of integers. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
I am not sure what this code says...
does it say, return a pointer to an int? and if so, how does that translate to a vector?
and ret is also a pointer to an array of dimension ints?
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.