covert ascii code to character

This is a discussion on covert ascii code to character within the C Programming forums, part of the General Programming Boards category; For the past hour or so, I have been searching google for switching the ascii value of a key into ...

  1. #1
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765

    covert ascii code to character

    For the past hour or so, I have been searching google for switching the ascii value of a key into it's character ( 097 = a ). All I've been able to find is converting it with Visual Basic. I am not using visual basic. I use GCC on Win98. I am trying to create a program that prints words, only it uses ascii values.

    This is possible right? If so, will someone care to demonstrate?
    The world is waiting. I must leave you now.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    How about a type cast? Or hell, just a direct assignment?

    char c = 97;

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    *slaps forehead* Thanks Quzah.
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 02:27 AM
  2. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  3. ASCII Character in printf Statement
    By JacquesLeJock in forum C Programming
    Replies: 1
    Last Post: 03-28-2008, 10:21 PM
  4. ASCII character with ASCII value 0 and 32
    By hitesh_best in forum C Programming
    Replies: 4
    Last Post: 07-24-2007, 09:45 AM
  5. wchar_t type
    By gustavosserra in forum C++ Programming
    Replies: 5
    Last Post: 11-02-2003, 03:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21