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)
|