Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,222 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,216 people online right now. Registration is fast and FREE... Join Now!




Printing ASCII table (0-127) to the corresponding chars

 
Reply to this topicStart new topic

Printing ASCII table (0-127) to the corresponding chars

Devilblade
6 Nov, 2007 - 08:35 AM
Post #1

New D.I.C Head
*

Joined: 6 Nov, 2007
Posts: 1


My Contributions
Dad is an expert in C++ and taught me some stuff (im 16) and i was reading this book he bought me and was wondering how we go about typing the ASCII table thats to the corresponding chars like 0 ^ @ - 127 ^ Del, etc

i have some major problem with # 8, - Backspace (BS)
9 - /t (tab)
10 \n (Newline)
13 CR (Cursor Return)
27 ESC (Escape Key)
32 SP (Space)
127 DEL (Delete) etc

ty for any suggestions



User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Printing ASCII Table (0-127) To The Corresponding Chars
6 Nov, 2007 - 10:00 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(Devilblade @ 6 Nov, 2007 - 09:35 AM) *

Dad is an expert in C++ and taught me some stuff (im 16) and i was reading this book he bought me and was wondering how we go about typing the ASCII table thats to the corresponding chars like 0 ^ @ - 127 ^ Del, etc

i have some major problem with # 8, - Backspace (BS)
9 - /t (tab)
10 \n (Newline)
13 CR (Cursor Return)
27 ESC (Escape Key)
32 SP (Space)
127 DEL (Delete) etc

ty for any suggestions


A backspace can be created like so :
CODE

printf("A");
printf("\b");
;

You'll notice that the a is created & the removed.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/9/09 05:47AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month