I put this here for me as part of a repository for some of my worked through code.
Do not return a pointer to an array.
Put your multiple values into a class and return that class;
or
concatenate your multiple values into a string and return that string.
If Bjarne Stroustrup (or ISO) publishes a version of C++ that includes functions that can return multiple values, then that could be an option.
If you believe in Jesus, then have a nice day.
Do not return a pointer to an array.
Put your multiple values into a class and return that class;
or
concatenate your multiple values into a string and return that string.
If Bjarne Stroustrup (or ISO) publishes a version of C++ that includes functions that can return multiple values, then that could be an option.
If you believe in Jesus, then have a nice day.
Comment