School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,154 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,957 people online right now. Registration is fast and FREE... Join Now!



hex to ascii converter

hex to ascii converter Rate Topic: -----

#1 shumwayj  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 10-April 09


Dream Kudos: 0

Posted 10 April 2009 - 06:05 AM

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.
Was This Post Helpful? 0
  • +
  • -


#2 BlakeJustBlake  Icon User is offline

  • D.I.C Regular
  • Icon
  • View blog
  • Group: Contributors
  • Posts: 441
  • Joined: 15-February 09


Dream Kudos: 75

Posted 10 April 2009 - 09:33 AM

So, are you asking anything, or what?
Was This Post Helpful? 0
  • +
  • -

#3 shumwayj  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 10-April 09


Dream Kudos: 0

Posted 14 April 2009 - 09:58 AM

View PostBlakeJustBlake, on 10 Apr, 2009 - 09:33 AM, said:

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?
Was This Post Helpful? 0
  • +
  • -

#4 NickDMax  Icon User is online

  • Can grep dead trees!
  • Icon
  • View blog
  • Group: Moderators
  • Posts: 6,317
  • Joined: 18-February 07


Dream Kudos: 1200

Expert In: Java/C++

Posted 14 April 2009 - 10:18 AM

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".
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month