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

BW>Can someone help me understand why different compilers treat this code
BW>differently?  Specifically Borland(3.0-4.52) -vs- Microsoft(8.00)
BW>    cout << "The value of /a is " << (char)'/a' << endl;
BW>Borland will send a backslash.  Microsoft, the letter a.
Shouldn't the above give an error? '/a' is more than one char. I think
you meant '\a' which is an escape code.
 * SLMR 2.1a * It's only a hobby ... only a hobby ... only a
--- FMail 0.92
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)

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