Log in

View Full Version : How do I get this character


albear
Jul 31, 2007, 03:22 PM
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

Lenovo
Jul 31, 2007, 03:52 PM
Click the start button on your computer, click programs, then accessories, then system tools, and use the character map, it might be on that.

albear
Jul 31, 2007, 03:57 PM
I think I found it but imnot sure ‫ how to transfer it to see if my programme works with it‫‫‫‬‫

albear
Jul 31, 2007, 04:08 PM
Any programmers out there know how?

benn11
Aug 1, 2007, 04:02 AM
Check out this website might help >> (http://www.cplusplus.com/doc/tutorial/)

Curlyben
Aug 1, 2007, 04:06 AM
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.

asterisk_man
Aug 1, 2007, 09:09 AM
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 (http://www.asciitable.com/) I can tell you that it's ascii character 170. In c, to use it as a char you would


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

To use it in a string I think you would


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.

albear
Aug 1, 2007, 11:23 AM
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)

NeedKarma
Aug 1, 2007, 11:30 AM
All the codes you need are here: Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion (http://www.asciitable.com/)

NeedKarma
Aug 1, 2007, 11:31 AM
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? "~"

albear
Aug 1, 2007, 11:37 AM
? No it was the style of writing in my kit just made it look like a 1 but it was a lower case L

asterisk_man
Aug 1, 2007, 12:01 PM
I guess there's this in UK
http://www.goodtyping.com/teclatUKok.jpg

But this in US:
http://www.goodtyping.com/teclatUSok.jpg

albear
Aug 1, 2007, 12:03 PM
Cool, (I see the us version ignores the £ sign)

NeedKarma
Aug 1, 2007, 12:19 PM
It all makes sense now. It depends on the mapping of your keyboard (selection of country codes).

Emland
Aug 1, 2007, 12:29 PM
What is the proper use for the "tilde" and the other thing the OP asked about? (what is it called again?)

NeedKarma
Aug 1, 2007, 01:15 PM
The tilde is used often in PC games ot access the console. But in regular use: Tilde - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Tilde)

I only ever use it to represent an approximation, to say "it's around $5" or ~$5.

Curlyben
Aug 1, 2007, 01:17 PM
I know what you mena it's called a pipe.
This one: |
It's on the backslash key.
Simply Shift + \