home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16523 < prev    next >
Encoding:
Text File  |  1992-11-18  |  964 b   |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: self-reproducing C++ program
  5. Message-ID: <1992Nov18.174240.21475@taumet.com>
  6. Organization: TauMetric Corporation
  7. References: <1919@alcbel.be> <1992Nov17.144939.21793@cc.gatech.edu>
  8. Date: Wed, 18 Nov 1992 17:42:40 GMT
  9. Lines: 19
  10.  
  11. brianm@cc.gatech.edu (Brian N. Miller) writes:
  12.  
  13. >In article <1919@alcbel.be> ldup@ta7s49.alcbel.be (Luc Duponcheel) writes:
  14.  
  15. >> <<';'<<
  16.  
  17. >This won't work, because character constants are converted to ints.
  18. >This will output the ascii decimal equivalent of ';', right?
  19.  
  20. This was the case with C++ and stream libraries up to about 1988.
  21.  
  22. Since then, a character literal is of type char, not int.   The
  23. definition of the stream classes was changed so that the expression
  24.     cout << 'x'
  25. prints the letter 'x', not the internal code for 'x'.
  26. -- 
  27.  
  28. Steve Clamage, TauMetric Corp, steve@taumet.com
  29. Vice Chair, ANSI C++ Committee, X3J16
  30.