Trouble passing value to bool variable from if/else statement

Jul 21, 2011 at 11:58pm
After two bool variables have been assigned an initial value, they are assigned as arguments in a function.
After being run through the if/ else statement they appear to be correct, but directly after the function they revert back to the original values.
They are not global, but are public.
Jul 22, 2011 at 12:07am
Assignments to variables passed as parameters to functions are not seen by the caller of the function unless the parameters are passed by reference.
Jul 22, 2011 at 1:10am
is there a good place to see the difference in the syntax? I can't seem to find a good example in my searches
Jul 22, 2011 at 1:22am
When to pass parameters by value, reference, and pointer:
http://www.cplusplus.com/articles/z6vU7k9E/
Jul 22, 2011 at 1:25am
closed account (DSLq5Di1)
We could point you in the right direction if you posted a snippet of the code encompassing your problem.
Jul 22, 2011 at 2:33am
I would like to thank everyone for helping, I discovered I had forgotten an & before my argument variables!!
Topic archived. No new replies allowed.