TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ADAM MAJER
from: BRIAN WOOD
date: 1998-01-24 15:57:00
subject: `/a`=?

 BW>    cout << "The value of /a is " << (char)'/a' << endl;
 BW>Borland will send a backslash.  Microsoft, the letter a.
 AM> Shouldn't the above give an error? '/a' is more than one char. I think
 AM> you meant '\a' which is an escape code.
No, no error, and '/a' is what I meant, but I think you're right.  A
compiler should post an error or at least a warning, IMHO.  I started
using two char constants a couple years ago, not realizing it was a bad
idea, and not at all portable evidently... Now I'd like to rewrite all
the code that uses this type, and I'm looking for the best way.
L8r,
bw
... I meant what I said --- I think.
--- Blue Wave/DOS v2.20
---------------
* Origin: River Canyon Rd. BBS Chattanooga, Tn (1:362/627)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.