On Sun, 31 Oct 2004 23:52:26 -0500, "zilleeizad"
<zi********@hotmail.com> wrote in comp.lang.c++:
i am using a couple of bool flags to determine certain conditions. these
flags are private members of a class. inside a method, i reset both the
flags before i go into an if-else where if the condition is true, i set
flag1, else i set flag2. my problem is that the flag2 gets set along with
flag1 without my doing so. flag2 is defined after flag1 in the class. if i
swap the definition sequence, the behaviour switches as well. any ideas?
My crystal ball is in the shop tonight. POST SOME CODE. Cut it town
to the smallest possible snipped that compiles and copy the text from
your editor right into the body of your message.
We need the class definition, the code that creates an object of the
class, and code that modifies the flags of the class and shows the
problem.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html