Mail Archives: djgpp/1998/06/16/14:31:23
sl wrote:
> void saychoice(lineType choice)
> {
> if (choice|dLine==dLine)
> printf("double line chosen");
> if (choice|overwrite==overwrite)
> printf("overwrite mode chosen");
> }
Well, one problem is this. You meant bitwise and, not bitwise or.
These comparisons will only test true if `choice' were zero.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm:+37.20.07/-121.53.38
\
She glanced at her watch / . . . It was 9:23.
/ James Clavell
- Raw text -