[C++]How to return more than two variables from a function?

Thank you very much, I just realized that I’m very stupid