Xref: news2.mv.net comp.os.msdos.djgpp:2699 From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: End of file keyboard symbol. Date: 14 Apr 1996 08:24:40 GMT Organization: The National Capital FreeNet Lines: 22 Sender: ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire) Message-ID: <4kqco8$mri@freenet-news.carleton.ca> References: <316E0DA2 DOT 38EF AT dwnplaza DOT ncom DOT nt DOT gov DOT au> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet2.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I've seen this sort of program. Usually it's just set to wait until a certain special number like 999 is entered that it treats as an exit command. Also done more elegantly as like this: Enter a number: 5 5 is positive Do you wish to do another number? Y Enter a number: -4 -4 is negative Do you wish to do another number? Y Enter a number: 32 32 is positive Do you wish to do another number? N C:\DJGPP> -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ,------------------------------------------------ -- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca