Thread: Shortcut

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    9

    Shortcut

    Hello
    can anybody say the shortcut needed for typing the character
    " █ "

    to be able to type the character in c++ editor window and as well as
    show it in the ouput screen

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Maybe its just me but that shows up as a black box...
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well any non-printable character in code is usually written as say
    cout << '\x41';
    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.

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    It's an UTF-8 character...
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    An attached image would be helpful.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  6. #6
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    If your console background color is black you can try this:

    std::cout<< ' ';

    or

    std::cout<< (char)0xdb;

    or summit

  7. #7
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Assuming the character he wants to display is the black box.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cab fiel shortcut problem
    By mr_empty in forum C# Programming
    Replies: 0
    Last Post: 06-18-2008, 06:32 AM
  2. about shortcut
    By George2 in forum Tech Board
    Replies: 3
    Last Post: 08-02-2006, 03:24 PM
  3. disable windows shortcut keys
    By Micko in forum Tech Board
    Replies: 2
    Last Post: 12-07-2005, 08:07 AM
  4. shortcut problem
    By Micko in forum Tech Board
    Replies: 3
    Last Post: 09-17-2004, 03:01 PM
  5. shortcut to shut down xp
    By surdy in forum Tech Board
    Replies: 13
    Last Post: 06-05-2004, 08:21 AM