Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C++ (https://www.askmehelpdesk.com/forumdisplay.php?f=439)
-   -   How do I get this character (https://www.askmehelpdesk.com/showthread.php?t=115269)

  • Jul 31, 2007, 03:22 PM
    albear
    How do I get this character
    Its like a 1 but with the line at the top pointing horizontally left

    Or

    Rotate an L by 180 degrees and it looks like that
  • Jul 31, 2007, 03:52 PM
    Lenovo
    Click the start button on your computer, click programs, then accessories, then system tools, and use the character map, it might be on that.
  • Jul 31, 2007, 03:57 PM
    albear
    I think I found it but imnot sure ‫ how to transfer it to see if my programme works with it‫‫‫‬‫
  • Jul 31, 2007, 04:08 PM
    albear
    Any programmers out there know how?
  • Aug 1, 2007, 04:02 AM
    benn11
    Check out this website might help >>
  • Aug 1, 2007, 04:06 AM
    Curlyben
    Do you mean this one:¬?

    If so it's on the key to the LEFT of the number 1 at the top of the keyboard.
    Simply press Shift and that key.
  • Aug 1, 2007, 09:09 AM
    asterisk_man
    Not sure what you mean curlyben, ¬ is not on my keyboard directly to the left of the number 1. to the left of the 1 on my (US English) keyboard I have `(grave accent) and ~ (tilde) if you hit shift. ¬ is not on my keyboard. In windows we have the Character Map program (probably under Accessories:System Tools) and it tells me that ¬ is called "Not Sign" and that you can get it by pressing and holding the alt key and then pressing 0172 and releasing alt. Also, from Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion I can tell you that it's ascii character 170. In c, to use it as a char you would
    Code:

    char a;
    a=170;
    //or maybe
    a='¬';

    To use it in a string I think you would
    Code:

    char s[10];
    //\xAA is giving the hexadecimal version of 170 which is AA
    s="1234\xAA6789\0";

    //or maybe even

    s="1234¬6789";

    Which I believe will become "1234¬6789"
    You can probably extrapolate from that if you're using some other type of string.

    Hope this helps a little. Ask if something isn't clear.
  • Aug 1, 2007, 11:23 AM
    albear
    I found it, asked a friend o'mine turns out it was a wierdly shapped l, (on my keyboard ¬ is next to 1 and below Esc)
  • Aug 1, 2007, 11:30 AM
    NeedKarma
    All the codes you need are here: Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion
  • Aug 1, 2007, 11:31 AM
    NeedKarma
    Quote:

    Originally Posted by albear
    i found it, asked a friend o'mine turns out it was a wierdly shapped l, (on my keyboard ¬ is next to 1 and below Esc)

    Do you mean the tilde? "~"
  • Aug 1, 2007, 11:37 AM
    albear
    ? No it was the style of writing in my kit just made it look like a 1 but it was a lower case L
  • Aug 1, 2007, 12:01 PM
    asterisk_man
    I guess there's this in UK
    http://www.goodtyping.com/teclatUKok.jpg

    But this in US:
    http://www.goodtyping.com/teclatUSok.jpg
  • Aug 1, 2007, 12:03 PM
    albear
    Cool, (I see the us version ignores the £ sign)
  • Aug 1, 2007, 12:19 PM
    NeedKarma
    It all makes sense now. It depends on the mapping of your keyboard (selection of country codes).
  • Aug 1, 2007, 12:29 PM
    Emland
    What is the proper use for the "tilde" and the other thing the OP asked about? (what is it called again?)
  • Aug 1, 2007, 01:15 PM
    NeedKarma
    The tilde is used often in PC games ot access the console. But in regular use: Tilde - Wikipedia, the free encyclopedia

    I only ever use it to represent an approximation, to say "it's around $5" or ~$5.
  • Aug 1, 2007, 01:17 PM
    Curlyben
    I know what you mena it's called a pipe.
    This one: |
    It's on the backslash key.
    Simply Shift + \

  • All times are GMT -7. The time now is 08:55 AM.