| delorie.com/archives/browse.cgi | search |
| From: | G DOT DegliEsposti AT ads DOT it |
| To: | djgpp AT delorie DOT com |
| Message-ID: | <C12565A7.00498B6E.00@vega.ads.it> |
| Date: | Tue, 10 Feb 1998 14:25:05 +0100 |
| Subject: | Re: Hi |
| Mime-Version: | 1.0 |
>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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |