From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: fast way to do a if statement Date: Sat, 26 Sep 1998 19:06:02 -0700 Organization: Alcyone Systems Lines: 21 Message-ID: <360D9D8A.4DD20788@alcyone.com> References: <360D5D93 DOT 499C3AED AT cdworld DOT co DOT uk> NNTP-Posting-Host: kamali.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Craig Rothwell wrote: > if (x==1) do... > if (x==2) do... > if (x==3) do... > if (x==4) do... > if (x==5) do... > etc... Use a switch...case statement. You should get an introductory book on C. -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / Courage is the fear of being thought a coward. / Horace Smith