home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!microsoft!hexnut!jimad
- From: jimad@microsoft.com (Jim Adcock)
- Subject: Re: self-reproducing C++ program
- Message-ID: <1992Nov18.231730.16817@microsoft.com>
- Date: 18 Nov 92 23:17:30 GMT
- Organization: Microsoft Corporation
- References: <1919@alcbel.be> <1992Nov17.144939.21793@cc.gatech.edu>
- Lines: 14
-
- In article <1992Nov17.144939.21793@cc.gatech.edu> brianm@cc.gatech.edu (Brian N. Miller) writes:
- |> <<';'<<
- |
- |This won't work, because character constants are converted to ints.
- |This will output the ascii decimal equivalent of ';', right?
-
- wrong -- unless you have a very old C++ compiler. For some years
- now C++ compilers have recognized chars as a distinct type, including
- char constants. This issue is different then in C++ than in C.
- Further, recently the C++ standardization committee has voted to
- recognize wide char types as also being their own distinct type, thus allowing
- proper Unicode I/O via streams.
-
-
-