This is a question of style or correctness for C++.
Say you have functionA and functionB, is it correct or good style to pass a value to functionA which it doesn't need itself, but needs to know about it to call functionB, which it(functionA) calls later?
I can't refer directly to the values as they are declared inside main.
functionA
andfunctionB
as member functions on your class. Then you don't need to pass the value through the functions.