#: 7804 S3/Languages
27-Oct-90 16:13:00
Sb: #7798-#OSK C
Fm: James Jones 76257,562
To: Jay Truesdale 72176,3565 (X)
You typed |= and you probably meant !=. A subtle difference, but a crucial
one! The reason the caret points at the = is that it's the left-hand side of
the |= assignment operator, or rather, the = is the root node of the expression
tree that's the left child of the |=.
Actually, you're pretty darned lucky; the rest of the |= should have been !=
too, but because just ch (which is an lvalue) was the LHS, the compiler would
have blithely done what you told it to do, and your loop would have run
forever!
There is 1 Reply.
|