I guess I am really having trouble with what's inside the function How do I get it out..
Suppose I ask a yes or no question and if the answer is no then break if the answer is yes then compute that formula. okay
int ThingYesNo;
doubleThingHeight
do
{
cout <<"Does the thing exist?"<<endl;//d11
cout << "1) Yes" <<endl;
cout << "0) No" <<endl;
cin>>ThingYesNo;
if (ThingYesNo==0)
break;
else
{cout << "What is the Things Height?"<<endl;
cin>>ThingHeight;
}
}while (ThingYesNo !=1);
so later in the program I need to retreive the yes answer to ThingYesNO and I need to retreive ThingHeight As they are both used for future calcuations....How do I write that?
I keep reading and studing but I must have missed something???
Totally Confussed:'(