Topic: type bool (how to input / output? )
Author: kanze@us-es.sel.de (James Kanze)
Date: 07 Apr 1994 13:28:08 GMT Raw View
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