I am trying to store some values return from a function. Its returning three values that i want to use in the main function.
int display()
{
int iter;
int num[4];
if(dl!=-1)
{
for(iter=0 ; iter<=al ; iter++)
{
cout<<t[iter]<<", ";
num[iter]=t[iter];
}
}
else
cout<<"EMPTY";
return num[0];
return num[1];
return num[2];
}
This is the function i have. I want to store the all the returned values and i am having a little problem.
It it was one value i would just
if it was only one value this would work fine.
int value=inc.display();
But im a little confuse on how to store all the three values and use them