From 4177138265129354455
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,4c1d3c9a17fae4a0,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-04-07 06:28:08 PST
Newsgroups: comp.std.c++
Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!xlink.net!slsv6bt!slsv6bt!kanze
From: kanze@us-es.sel.de (James Kanze)
Subject: Re: type bool  (how to input / output? )
In-Reply-To: jarausch@igpm.rwth-aachen.de's message of 28 Mar 1994 12:46:50 GMT
Message-ID: <KANZE.94Apr7142808@slsvhdt.us-es.sel.de>
Sender: news@lts.sel.alcatel.de
Organization: SEL
References: <2n6jjq$ouq@urmel.informatik.rwth-aachen.de>
Date: 07 Apr 1994 13:28:08 GMT
Lines: 27

In article <2n6jjq$ouq@urmel.informatik.rwth-aachen.de>
jarausch@igpm.rwth-aachen.de (Helmut Jarausch) writes:

|> I am preparing a course on C++, so I would like simulate and talk about type bool.  So here my  FAQ candidates:

|> Are  'true' and 'false'   keywords or just predefined constants ?

Keywords.

|> How is type bool  output  by  operator<<  ?

Not yet defined.

|> Which (valid) input is accepted by  operator>>  for a variable of type bool?

Not yet defined.

For the moment, the iostream class definition has not yet been
extended to take bool into account.  I suspect that this will happen;
what will be defined, however, I have no idea.  (Note that the literal
strings `true' and `false' are not really very good choices.  At
least, not where I live.)
--
James Kanze                       email: kanze@lts.sel.alcatel.de
GABI Software, Sarl., 8 rue du Faisan, F-67000 Strasbourg, France
Conseils en informatique industrielle --
                   -- Beratung in industrieller Datenverarbeitung


