Thread: RE: Re [Dev-C++] Question of the day
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2000-10-15 19:35:34
|
You are talking about '\a' (bell) and i am talking about '\b' (backspace).
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of SpiderMan
Sent: Sunday, October 15, 2000 8:28 PM
To: dev...@li...
Subject: Re [Dev-C++] Question of the day
In my C++ book it says that \b will produce a system beep through the
internal speakers, not earse characters.
|
|
From: Dario P. <do...@ho...> - 2000-10-15 21:25:15
|
*cough*cough* /* The complete set of escape sequences is: \a alert (bell) character \b backspace \f formfeed \n newline \r carriage return \t horizontal tab \v vertical tab \\ backslash \? question mark \' single quote \" double quote \ooo octal number \xhh hexadecimal number */ That's what The C Programming Language (ANSI C), Second Edition by Brian W. Kernighan and Dennis M. Ritchie says. Just thought you should know. adios, biterman _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. |
|
From: Jason S. <jas...@at...> - 2000-10-15 21:45:58
|
-.- My book *does* say /b is blank space, but your right, it's =
backspace.
Eitherway, if you use printf("This is a test\b test"); it does do the =
backspace. Seems there has to be an action after the \b for it to =
occur? -.-
-Jay-
----- Original Message -----=20
From: Dario Peralta=20
To: dev...@li...=20
Sent: Sunday, October 15, 2000 1:25 PM
Subject: Re: Re [Dev-C++] Question of the day
*cough*cough*
/*
The complete set of escape sequences is:
\a alert (bell) character
\b backspace
\f formfeed
\n newline
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\? question mark
\' single quote
\" double quote
\ooo octal number
\xhh hexadecimal number
*/
That's what The C Programming Language (ANSI C), Second Edition by =
Brian W.=20
Kernighan and Dennis M. Ritchie says.
Just thought you should know.
adios,
biterman
=
_________________________________________________________________________=
Get Your Private, Free E-mail from MSN Hotmail at =
http://www.hotmail.com.
Share information about yourself, create your own public profile at=20
http://profiles.msn.com.
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
|
|
From: Quentin S. <mac...@bi...> - 2000-10-15 22:24:47
|
Hi-
Actually, /b moves the cursor back. You then need to print what you want =
to replace it with.
--Quentin
----- Original Message -----=20
From: Jason Silverman=20
To: dev...@li...=20
Sent: Sunday, October 15, 2000 5:43 PM
Subject: Re: Re [Dev-C++] Question of the day
-.- My book *does* say /b is blank space, but your right, it's =
backspace.
Eitherway, if you use printf("This is a test\b test"); it does do the =
backspace. Seems there has to be an action after the \b for it to =
occur? -.-
-Jay-
----- Original Message -----=20
From: Dario Peralta=20
To: dev...@li...=20
Sent: Sunday, October 15, 2000 1:25 PM
Subject: Re: Re [Dev-C++] Question of the day
*cough*cough*
/*
The complete set of escape sequences is:
\a alert (bell) character
\b backspace
\f formfeed
\n newline
\r carriage return
\t horizontal tab
\v vertical tab
\\ backslash
\? question mark
\' single quote
\" double quote
\ooo octal number
\xhh hexadecimal number
*/
That's what The C Programming Language (ANSI C), Second Edition by =
Brian W.=20
Kernighan and Dennis M. Ritchie says.
Just thought you should know.
adios,
biterman
=
_________________________________________________________________________=
Get Your Private, Free E-mail from MSN Hotmail at =
http://www.hotmail.com.
Share information about yourself, create your own public profile at=20
http://profiles.msn.com.
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
|
|
From: Jason S. <jas...@at...> - 2000-10-15 22:33:22
|
Ah! Thanks for clearing that up, I was a bit confused. -.- =3Do -Jay- ----- Original Message -----=20 From: Quentin Smith=20 To: dev...@li...=20 Sent: Sunday, October 15, 2000 5:22 PM Subject: Re: Re [Dev-C++] Question of the day Hi- Actually, /b moves the cursor back. You then need to print what you = want to replace it with. --Quentin |
|
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
|
|
From: Jason S. <jas...@at...> - 2000-10-15 19:55:57
|
In my book, it says \b is blank space, not backspace. -.-
-Jay-
----- Original Message -----=20
From: Ioannis Vranos=20
To: dev...@li...=20
Sent: Sunday, October 15, 2000 4:36 PM
Subject: RE: Re [Dev-C++] Question of the day
You are talking about '\a' (bell) and i am talking about '\b' =
(backspace).
=20
=20
Ioannis
-----Original Message-----
From: dev...@li... =
[mailto:dev...@li...]On Behalf Of SpiderMan
Sent: Sunday, October 15, 2000 8:28 PM
To: dev...@li...
Subject: Re [Dev-C++] Question of the day
In my C++ book it says that \b will produce a system beep =
through the internal speakers, not earse characters.
|