All the ASCII characters

This is a discussion on All the ASCII characters within the C++ Programming forums, part of the General Programming Boards category; Where can I look up a table of all the ascii characters and their number value?...

  1. #1
    Shadow12345
    Guest

    All the ASCII characters

    Where can I look up a table of all the ascii characters and their number value?

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: All the ASCII characters

    Originally posted by Shadow12345
    Where can I look up a table of all the ascii characters and their number value?
    Write your own prog to do it!

    Or :
    http://www.asciitable.com/
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    63
    just make a loop in a program, for example:

    for(int i = 0; i < 256; i++)
    cout << char(i) << "\t";

    which should output all the ASCII codes to your screen.

    enjoy.
    tudehopet uses Borland Compiler 5.5
    and Visual C++ 6.

  4. #4
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    yes, but with that loop you'd get some strange results for the first bunch of them because the first batch are command/control chars (\n, \0, etc.)

  5. #5
    Shadow12345
    Guest
    Hey well that loop really is a good idea, I wish I had gotten the air out of my head and thought of it.

    Thanks.

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    63
    It is always a pleasure sharing any of my knowledge with someone.
    tudehopet uses Borland Compiler 5.5
    and Visual C++ 6.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  2. Replies: 11
    Last Post: 03-24-2006, 10:26 AM
  3. ascii characters video displaying on tv screen
    By deian in forum C Programming
    Replies: 6
    Last Post: 10-12-2004, 09:46 PM
  4. ASCII Printable Characters
    By dalek in forum C# Programming
    Replies: 3
    Last Post: 08-11-2003, 04:13 AM
  5. Printing extended ASCII characters
    By Jonny M in forum C Programming
    Replies: 2
    Last Post: 03-01-2002, 09:12 AM

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