[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: c++ eof() function in gcc
- To: gmendelson(at-nospam)bfr.co.il
- Subject: Re: OT: c++ eof() function in gcc
- From: Gilad Ben-Yossef <gilad(at-nospam)benyossef.com>
- Date: Tue, 31 Oct 2000 03:41:59 +0200
- CC: Ishai Parasol <parasol(at-nospam)mail.com>, linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- References: <200010301737.TAA31769@nardis.bfr.co.il>
- Sender: gby(at-nospam)lmail.actcom.co.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
"Geoffrey S. Mendelson" wrote:
>
> Ishai Parasol wrote:
>
> > It's a bit off topic so answer me privatly please.
>
> Actually it's right on topic.
>
> > I know that in other c++ compilers (other than gcc) the keyboard input for
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *
>
> > cin.eof() is Ctrl+Z. But when i compile a program with g++ and run it,
> > Ctrl+Z only stops the program. Do you know how I actually activate this
> > function ?
>
> Your shell is catching the control z first. Look at man stty under susp.
> (suspend character)
>
> * any c++ library would have the same effect under Linux.
Is this not a Unix vs Win thingie? AFAIK it's ctrl+z for Windows, ctrl+d
for Unix (including Linux) or am I out of my depth here?
And of course most shell do use ctrl+z for job suspend...
Gilad.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il