|
From: SpiderMan <Spi...@pr...> - 2000-10-17 22:42:24
|
Yes you are right, I checked my book again, \a and \b are very close =
together, it was my mistake. I am using the book Object-Oriented =
Programming in C++ Second Edition, it's quite old (Copyright 1995) I got =
it for $9 at a used bookstore : )
----- Original Message -----=20
From: Matthew Hickson=20
To: dev...@li...=20
Sent: Tuesday, October 17, 2000 9:30 AM
Subject: Re: Re [Dev-C++] Question of the day
Hello,
In my C++ book it says that \b will produce a system beep =
through the internal speakers, not erase characters.
I have two books, both copyrighted 1998 and covering ANSI/ISO C++. =
They both state that \a is for alarm (the bell/beep), and that \b is =
indeed a backspace character.
However, as has already been mentioned, the backspace is usually not =
destructive. It just moves the cursor back one space. To delete a =
character you would have to follow the rules for your text interface (I =
believe CTRL+H will do... better still, use the hex code for "Delete" -- =
not backspace).
It could also be that different compilers handle it differently; =
however, the texts I have mentioned cover ANSI/ISO standards which seem =
to fall in line with everything I've read regarding C/C++. (You could =
also check your man pages if you're a Unix type.)
The books, for those who are interested are:
1. C++ How to Program (2e) by Deitel and Deitel (published by =
Prentice-Hall... they have a website too... www.deitel.com)
2. Ivor Horton's Beginning C++ (The complete language - ANSI/ISO =
Compliant edition) by Wrox Press. (He's also got a book for MSVC.)
Hope that's helpful.
Matthew Hickson
-------------------------------------------------------------------------=
-----
Link is external to the Privacyx.com System
|