×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

ASCII TO HEX TO ASCII

ASCII TO HEX TO ASCII

ASCII TO HEX TO ASCII

(OP)
Hello currently i am trying to write a program to take in user input and convert this input to ASCII or Hex depending on what they specify.The ASCII set in question is standard one from 0 to 127. I am wondering should i have a 2-dim array of ASCII chars and there hex equivalent. the difficulty i am finding is with special chars in the ASCII set,e.g Delete 7F.Say for example the user presses carriage return when prompted to enter the string for conversion.should i say enter string and press '999' to end as carriage return cannot be used.I am getting very stressed out with this programming problem. i am a hard worker but just cant seem to get over this problem. Hope the legends out there can help.
thank you very much

RE: ASCII TO HEX TO ASCII

Using a 2dim array is not worth it.  Strings ARE in ASCII, so if you have the ascii code as an integer somewhere, you just print it directly to screen, which outputs it as an ascii character.  For instance, if al=65, you output an 'A.'

Your problem is much easier if you were to go directly to BIOS or hardware, but that may be more complex than you can handle.  If you need to display 8, 9, 10, 13, you need to write them directly to screen.  Entering these codes is another problem too.

"Information has a tendency to be free.  Which means someone will always tell you something you don't want to know."

RE: ASCII TO HEX TO ASCII

CAN  U HELP  ME  TO  WRITE  APROCRDUER  TO READ HEXA DECIMAL  DIGITS NUMBERS CONTAINIG UP  4  HEXA DECIMAL  DIGITS  NOTE THAT THE  NO MASY  CONTAIN LESS  THAN 4 HEXADECIMAL  DIGITS  USE  THE  RETURN  KEY   AS  TERMINATION  CHAR TO  ENTERING  THE  N0..

alitiger17@hotmail.com

RE: ASCII TO HEX TO ASCII

THANKS  
PLZZ  HELP  ME  TO  SOLVE  THIS:  CAN  U HELP  ME  TO  WRITE  APROCRDUER  TO READ HEXA DECIMAL  DIGITS NUMBERS CONTAINIG UP  4  HEXA DECIMAL  DIGITS  NOTE THAT THE  NO MASY  CONTAIN LESS  THAN 4 HEXADECIMAL  DIGITS  USE  THE  RETURN  KEY   AS  TERMINATION  CHAR TO  ENTERING  THE  N0..


RE: ASCII TO HEX TO ASCII

THANKS  
PLZZ  HELP  ME  TO  SOLVE  THIS:  CAN  U HELP  ME  TO  WRITE  APROCRDUER  TO READ HEXA DECIMAL  DIGITS NUMBERS CONTAINIG UP  4  HEXA DECIMAL  DIGITS  NOTE THAT THE  NO MASY  CONTAIN LESS  THAN 4 HEXADECIMAL  DIGITS  USE  THE  RETURN  KEY   AS  TERMINATION  CHAR TO  ENTERING  THE  N0..


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close