www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/10/07:18:02

Date: Tue, 10 Feb 1998 13:14:32 +0100 (MET)
From: Olivier Perron <perron AT art DOT alcatel DOT fr>
To: Charbel Sadaka <z2193115 AT student DOT unsw DOT edu DOT au>
Cc: djgpp AT delorie DOT com
Subject: Re: Hi
In-Reply-To: <34E03363.1A28E21C@student.unsw.edu.au>
Message-Id: <Pine.GSO.3.96.980210131232.3556A-100000@rtbsci143s>
Mime-Version: 1.0

On Tue, 10 Feb 1998, Charbel Sadaka wrote:

[...]

> no problems with it except that I've tried writing a simple program to
> read from the stdin and count the number of characters in it using the
> 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
> problem I'd greatly appreciate it,

[...]

> 
Try ^Z instead of ^D

--
Olivier Perron



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019