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

inside the function when you set the properties of the struct, they will be returned by reference.

Use these return values.