char insertion operator
The stream library did not contain an insertion operator for
char.
So inserting a
char
was taken as inserting an integer value, and
it was converted to decimal.
This omission was due to problems with overload resolution in early
versions of the AT&T C++ Language System.
Any old code such as:
char c ;
cout << c ;
may be replaced by:
char c ;
cout << (int)c ;
Previous topic:
Assignment
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005