Thread: ascii symbols in C

  1. #1
    Registered User
    Join Date
    Oct 2009

    ascii symbols in C

    Hi! I'm new to the C programming language, just started learning it, and I was wondering - if I'm using Borland C++ 3.1, is there a function to draw, for example, tables using different ASCII table symbols, like it was possible in pascal with chr() function?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Assuming your console is on the same code page as you are, then yes. You can assign values straight out, as in
    char pound_sign = 156;
    or embed them in hex format, using \x<whatever>, or in octal format using \0<whatever>.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  2. Trouble with Windows/DirectX programming
    By bobbelPoP in forum Windows Programming
    Replies: 16
    Last Post: 07-08-2008, 02:27 AM
  3. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  4. Strange error?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 02-04-2006, 03:01 PM
  5. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM