X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: Modulo % operator Date: Fri, 28 Dec 2001 12:26:20 +0000 Lines: 20 Message-ID: <3C2C64EC.F1039DE1@phekda.freeserve.co.uk> References: <3C2B9600 DOT 1BBFB901 AT xtra DOT co DOT nz> NNTP-Posting-Host: modem-250.fluorine.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg4.svr.pol.co.uk 1009542670 25242 62.136.8.250 (28 Dec 2001 12:31:10 GMT) NNTP-Posting-Date: 28 Dec 2001 12:31:10 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. Greg & Steph wrote: > All my books for c & c++ use % for modulo > ie > mod=count%2; > > gives, mod=0 for even count > and, mod=1 for odd count > > this dosen't work with rhide/djgpp (!?!) > or, can't I work with rhide/djgpp ?!! What do you mean by "it doesn't work"? Does it give you the wrong result, does it cause a crash or something else entirely? Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]