Re: Re [Dev-C++] Question of the day
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Matthew H. <mhi...@ko...> - 2000-10-17 16:29:54
|
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
|