This is what return values and output parameters (i.e., a pointer parameter that points to an object in the caller to which the function can write the result) are for.
This is what return values and output parameters (i.e., a pointer parameter that points to an object in the caller to which the function can write the result) are for.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)