home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: self-reproducing C++ program
- Message-ID: <1992Nov18.174240.21475@taumet.com>
- Organization: TauMetric Corporation
- References: <1919@alcbel.be> <1992Nov17.144939.21793@cc.gatech.edu>
- Date: Wed, 18 Nov 1992 17:42:40 GMT
- Lines: 19
-
- brianm@cc.gatech.edu (Brian N. Miller) writes:
-
- >In article <1919@alcbel.be> ldup@ta7s49.alcbel.be (Luc Duponcheel) writes:
-
- >> <<';'<<
-
- >This won't work, because character constants are converted to ints.
- >This will output the ascii decimal equivalent of ';', right?
-
- This was the case with C++ and stream libraries up to about 1988.
-
- Since then, a character literal is of type char, not int. The
- definition of the stream classes was changed so that the expression
- cout << 'x'
- prints the letter 'x', not the internal code for 'x'.
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-