Thread: using extended ascii

  1. #1
    Registered User
    Join Date
    Aug 2014
    Posts
    47

    using extended ascii

    I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,110
    Quote Originally Posted by Moon River View Post
    I want to design my table with extended ascii codes. What's the general syntax for that? Im using C v5.7.1 on windows 8. Thanks
    What "Table"? Can you provide some code or other information so we know what you are trying to do?

  3. #3
    Registered User
    Join Date
    Aug 2014
    Posts
    47
    Quote Originally Posted by rstanley View Post
    What "Table"? Can you provide some code or other information so we know what you are trying to do?
    Ohh im sorry, what i mean is the 'main menu' of my program.

    It goes like this. i want to put some line above and at the bottom so i search for some extended ascii codes. But the displayed char is different.
    Code:
    main()
    {
    printf("\222\222\222 MAIN MENU\222\222\222\n");
    printf(" 1. Add items\n");
    printf(" 2. Search for items\n");
    printf(" 3. Exit\n");
    printf("\222\222\222\222\222\222\222\2222\222\n);
    }

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you're looking for the box characters in the extended ASCII character set shown here, then you need to look elsewhere.
    Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion
    This worked when your real OS was DOS.

    Now that you're on windows (and a modern windows at that), things are different.
    Code Page Identifiers (Windows)

    The box characters will be available somewhere, but you might have to do some digging around to find them.

    I don't know what you mean by "C v5.7.1". It sounds like some DOS throwback which you've managed to persuade Win8 to run. Do you have a link to where it can be downloaded / or is documented.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    It sounds like some DOS throwback which you've managed to persuade Win8 to run. Do you have a link to where it can be downloaded / or is documented.
    O_o

    Probably "Orwell Dev-C++", thus "MinGW 4.8.x", considering that matches the latest version number.

    Anyways, the "Windows 8" terminal and at least one font (Lucida?) supports the box-drawing characters from the UNICODE standard.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Displaying Extended ASCII
    By JMJ_coder in forum C Programming
    Replies: 2
    Last Post: 10-07-2008, 08:35 AM
  2. fgetc() and TABS, Extended ASCII
    By eddiemjm in forum C Programming
    Replies: 2
    Last Post: 03-22-2004, 05:31 PM
  3. help! extended ascii table
    By godhand in forum Linux Programming
    Replies: 7
    Last Post: 10-07-2003, 05:20 PM
  4. ASCII extended
    By arlenagha in forum Linux Programming
    Replies: 1
    Last Post: 05-14-2003, 01:15 PM
  5. Printing extended ASCII characters
    By Jonny M in forum C Programming
    Replies: 2
    Last Post: 03-01-2002, 10:12 AM