When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
25 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
there are a couple of options
This guy asked the same question like 30 mins ago and got the answer.
you can return a single object containing both
or you can use outparameters
or I guess globals if you want but dont do that
oh
rip
it looks like he removed the post or it was removed by someone else
welp I answered it
weird
this might be a troll account
well its an interesting troll
giving a trival question which can be answered in a single message
no, it's actually that I've tried to reformulate the question but none of you actually gave me an understandable answer I'm a begginer so it's quite difficult for me but it's ok, I'll do it by myself and no, I'm not a troll
just return a struct that contains both values.
If you don’t understand the answer just ask for clarification 🙂
what is the difference between function and std::pair
they have nothing in common
std::pair is a pair of values and function is a piece of code
Do you mean struct and pair?
i understand what a struct is but what is below the struct?