How declare a Function with 8 Inputs and 4 Outputs ??
-
Hi, I would like to create a function with 8 Inputs and the result is in 4 Ouputs. How can I declare it? Best Regards youssef
Hi Are you really shure that you want to have that many in and outputs in one function? Maybe the function is doing too much and you should consider splitting it up in several functions. Else, while a function only can return one value you have to get the result through the parameters in the function using pointers or references. Something like: myFunction(in1,in2,in3,in4,in5,in6,in7,in8,*out1,*out2,*out3,*out4). /Per
-
Hi Are you really shure that you want to have that many in and outputs in one function? Maybe the function is doing too much and you should consider splitting it up in several functions. Else, while a function only can return one value you have to get the result through the parameters in the function using pointers or references. Something like: myFunction(in1,in2,in3,in4,in5,in6,in7,in8,*out1,*out2,*out3,*out4). /Per
the other asy is to group your values into structures or clases (input and output) then it's easy... COutputInfo DoSomeCalcs( CInputInfo in ) { : }:) =)