0
Is it possible to return two variables with different types--e.g., string and integer, from a function in C++?
Can do this with Python; wondering about C++...
4 Answers
+ 1
....or a std::pair (#include <utility>)
0
No, but you could return a tuple.
0
A tuple with a string and integer in each slot. I see. But immutable.
0
Makes a case for classes in C++