TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BRIAN WOOD
from: BERK OZBOZKURT
date: 1998-01-23 13:48:00
subject: `/a`=?

Hi Brian Wood,
You said :
 BW> Can someone help me understand why different compilers treat this
 BW> code differently?  Specifically Borland(3.0-4.52) -vs-
 BW> Microsoft(8.00)
 BW>     cout << "The value of /a is " << (char)'/a' << endl;
 BW> Borland will send a backslash.  Microsoft, the letter a.
 Borland compilers does not support multi-character, character constants so 
it just evalutes to first character.. It is perfectly normal that borland 
sends a backslash.. I don't know the case with microsoft compilers but I 
guess the difference is related with this multi character thing..
                                                Berk
... I shot the Moderator. I AM the SysOp, didn't shoot myself.
--- GoldED/386 2.50.A0715 UNREG
---------------
* Origin: void BBS where nothing but (2:431/327)

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™.