I am required to call an input method and a calculations method from main. Input will prompt the user to input 3 variables. Without using arrays, loops, or globalized variables, how can I return the 3 variables back to main to be passed as parameters to the calculations method?
Asked
Active
Viewed 43 times
0
-
2Can you use a tuple? – NathanOliver Jul 22 '16 at 16:22
-
4You can use structs, classes, pointers or references. – MikeCAT Jul 22 '16 at 16:22
-
1See [Functions with multiple return values](http://stackoverflow.com/documentation/c%2b%2b/487/functions-with-multiple-return-values#t=201607221623251363519). – James Adkison Jul 22 '16 at 16:24