From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Tue, 10 Feb 1998 14:25:05 +0100 Subject: Re: Hi Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >following code: > while (ch=getchar( ) != EOF) { > count++ > } > >The program compiles and all except at university we use unix and to >terminate the above >program ^D stands for EOF. The problem is I can't seem to do the same >in DOS since I can't find a similar command. If you how to solve this This is because while unix uses ^D for EOF, DOS uses ^Z. If you type ^Z on a single line followed by return, it should work. ciao Giacomo