i want to return 2 values but i don't know how i can do that. this is part of what i have done, i want to have choice[0] and also choice[1] be returned. also how can i store them in 2 different variables in the main.
int pick()
{
choice1=wake();
do
{
switch (choice1)
{
case 2:
homework();
choice[0]=2;
c=2;
break;
case 3:
choice[1]=sleep();
choice1=choice[1];
choice[0]=3;
c++;
break;
case 1:
choice[1]=wander();
choice[0]=1;
c=2;
break;
default:
cout<<"Ha Ha Ha Ha Ha"<<endl;
c++;
break;
}
}
while(c<2);
return choice[0];
}
int main()
{
choice[0]=pick();
return 0;
}