Say you have a class called example:
class example
{
int one;
int two;
};
and you use this to get numbers from the user:
example number;
cout<<"enter numbers"<<endl;
cin>>number.one>>number.two;
and then you call one function to manipulate the numbers and another to do some more manipulation. How do you get those numbers from one function to the other?
function1(number.one, number.two);
function2(number.one, number.two);