Shortcut

This is a discussion on Shortcut within the C++ Programming forums, part of the General Programming Boards category; Hello can anybody say the shortcut needed for typing the character " █ " to be able to type the ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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,262
    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, 07: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

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