Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!tredysvr!cellar!rogue From: rogue@cellar.UUCP (Rache McGregor) Newsgroups: comp.lang.c Subject: Re: to "OR" or not to "OR" Message-ID: Date: 28 May 91 23:48:41 GMT References: <1991May28.191122.15749@ncsu.edu> Sender: bbs@cellar.UUCP (The Cellar BBS) Organization: The Cellar BBS and public access system Lines: 30 tmjones@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@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)