Hello,
I would like to return a multidimensional array from a pointer function.But multidimensional array dimension's will be enormous.For example,width will be 500 and height will be 600.
Could you help me please?
This is a discussion on How to return a multidimensional array with a pointer function? within the C++ Programming forums, part of the General Programming Boards category; Hello, I would like to return a multidimensional array from a pointer function.But multidimensional array dimension's will be enormous.For example,width ...
Hello,
I would like to return a multidimensional array from a pointer function.But multidimensional array dimension's will be enormous.For example,width will be 500 and height will be 600.
Could you help me please?
Pass the array to the function, then modify the array in the function. If you are using a container instead, pass the container by reference.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
Side note: if you used functors instead of function pointers, then you could return a vector from the functor and hopefully the compiler will optimize it.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^