Trouble Printing ASCII Character

This is a discussion on Trouble Printing ASCII Character within the C++ Programming forums, part of the General Programming Boards category; I'm using Borland C++ V4.52, on either Windows 98 or NT, which ever will be in my advantage. I tried ...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question Trouble Printing ASCII Character

    I'm using Borland C++ V4.52, on either Windows 98 or NT, which ever will be in my advantage. I tried to use an ASCII character in my program but it came out as a letter, the ASCII code is ALT-234. Can anyone help me?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Is this how you tried to print it?
    cout << (char) 234 << endl;

    Or this?
    char a = 234;
    cout << a << endl;

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    the omega symbol?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. decimal ascII character
    By byfreak in forum C++ Programming
    Replies: 3
    Last Post: 05-24-2008, 10:36 PM
  2. Office access in C/C++ NOT VC++!! :)
    By skawky in forum C++ Programming
    Replies: 1
    Last Post: 05-26-2005, 01:43 PM
  3. syntax error when defining vectors
    By starkhorn in forum C++ Programming
    Replies: 5
    Last Post: 09-22-2004, 12:46 PM
  4. Printing a Character from Binary
    By SavesTheDay in forum C Programming
    Replies: 6
    Last Post: 02-19-2002, 01:35 PM
  5. Printing characters not in the ASCII table
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-21-2002, 12:47 PM

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