to "OR" or not to "OR"
Rache McGregor
rogue at cellar.UUCP
Wed May 29 09:48:41 AEST 1991
tmjones at eos.ncsu.edu (TOMMIE MILES JONES) writes:
> Ok folks this is a real stupid problem.
> I have a (don't laugh, I'm a poor broke college student) tandy 1000sx
> it is IBM compatible (suprise!) and run quick C ver 2.5 academic ver.
> (only $45 I told you I was cheap)
> this peice of sh-- will not allow me to write the OR symbol "|"
> it is on key 4 on the numeric key pad. I tried all different combinations
> of numlock and shift. it will just move the cursor or highlight the text.
> I'm tired of Demorgan's law (a | b= !(a & b)) isnt there a way to get around
> I read somewhere that C has taken into consideration that some machines do
> not have all the funky symbols and there are ways to get around.
>
>
> help me please
Don't feel too badly, I'm also using Academic QuickC, and I had to pay $52
for it!
According to The_Waite_Group's_Essential_Guide_to_ANSI_C, the trigraph
sequence to represent | is ??!. I haven't tried using them myself (and can't
at the moment,, or I'd check), but I'd expect the trigraphs to work in 2.5,
since it was released after the ANSI standard.
Reference: [title above], Naba Barkakati, 1988. ISBN 0-672-22673-1
Rogue Winter | "The truth knocks on the door and you say,
rogue at cellar.uucp | "Go away, I'm looking for the truth," and so
uunet!cellar!rogue | it goes away. Puzzling."
Cellar 215/3369503 | -Robert Pirsig (quoted in Zen_To_Go, Jon Winokur)
More information about the Comp.lang.c
mailing list