C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

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

Join 306,807 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,665 people online right now. Registration is fast and FREE... Join Now!




hex to ascii converter

 

hex to ascii converter

shumwayj

10 Apr, 2009 - 06:05 AM
Post #1

New D.I.C Head
*

Joined: 10 Apr, 2009
Posts: 2

I am new to programming and am doing some testing on creating a hex to ascii converter using a customized ascii table. I've seen plenty of converters but known where I can change the ascii table.

User is offlineProfile CardPM
+Quote Post


BlakeJustBlake

RE: Hex To Ascii Converter

10 Apr, 2009 - 09:33 AM
Post #2

D.I.C Regular
Group Icon

Joined: 15 Feb, 2009
Posts: 441



Thanked: 23 times
Dream Kudos: 75
My Contributions
So, are you asking anything, or what?
User is offlineProfile CardPM
+Quote Post

shumwayj

RE: Hex To Ascii Converter

14 Apr, 2009 - 09:58 AM
Post #3

New D.I.C Head
*

Joined: 10 Apr, 2009
Posts: 2

QUOTE(BlakeJustBlake @ 10 Apr, 2009 - 09:33 AM) *

So, are you asking anything, or what?

I see your point, a question would have been good.
an i use a customized ascii table to create a hex to ascii converter?
User is offlineProfile CardPM
+Quote Post

NickDMax

RE: Hex To Ascii Converter

14 Apr, 2009 - 10:18 AM
Post #4

Can grep dead trees!
Group Icon

Joined: 18 Feb, 2007
Posts: 5,265



Thanked: 293 times
Dream Kudos: 1175
Expert In: Java/C++

My Contributions
not really sure what you mean by a "customized ASCII table"?

I would think that you just mean a lookup table:
const char MyASCIITable[256] = { 0x00, 0x01, 0x02, 0x03 ... 0xFE, 0xFF};

Then if you would like to convert a char from regular ASCII to the custom map you would just get: MyASCIITable[ch]

So really you may need to clear up what it is you mean by"customized ascii table" and "hex to ascii".


User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 11/20/09 09:48PM

Live C++ Help!

Be Social

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

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month