Thread: Heh...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Heh...

    I'm not sure if this would go into the windows board or the general board, but anyways... Why in the world is there a '|' symbol when it's identicle to '+'?

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    they don't look identical to me. one is a long narrow beam, and the other is a small cross. very clear difference.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by simpleid View Post
    they don't look identical to me. one is a long narrow beam, and the other is a small cross. very clear difference.
    Let me guess, you did something like:

    Code:
    1 | 2 | 16
    And found that the result was 19 and therefore assumed that '|' is the same as addition?

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    what?! it's a joke... about the symbols '|' and '+'... look at them as a symbol, they are not identical. i have -no- clue as to what you're talking about brewbuck.
    Last edited by simpleid; 08-16-2007 at 04:00 PM.

  5. #5
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Pointless topic, no? So what's the punchline?

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    Pointless topic, no? So what's the punchline?
    Bam! :-d
    Cha-Ching!

    (lol damn it, why doesn't ctrl+c work on these forums? i always have to right-click-copy)

  7. #7
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by simpleid View Post
    what?! it's a joke... about the symbols '|' and '+'... look at them as a symbol, they are not identical. i have -no- clue as to what you're talking about brewbuck.
    I was assuming the person actually meant something serious by the question.

  8. #8
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    brewbuck, i was the one that was joking, not him.
    Last edited by simpleid; 08-16-2007 at 04:11 PM.

  9. #9
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    >> I was assuming the person actually meant something serious by the question.
    I did.

    >> i think it's time for me to go home, finally off work! wooo~! this thread should just be deleted, lol.
    Actually, you should deleted.

    Also, I notied there is another duplicate: '&~' = '-'

  10. #10
    Registered User
    Join Date
    Jul 2006
    Posts
    162
    yarin, my best guess, there are two sets of symbols for instructions to manipulate information, those used in the decimal system through out history in mathematics, and those designed to mimic logic gates in math/engineering.

    it doesn't have to do with the fact that they overlooked duplicates or anything.

    you'll find an equivalent logical operation for a whole lot of things.
    Last edited by simpleid; 08-16-2007 at 04:14 PM.

  11. #11
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    They don't do the same thing, so they aren't duplicates.

  12. #12
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Okay, I know quite well what '+' & '-' do. So please enlighten me on what '|' & '&~' do.

    Ah ha! Simple's an editor.

  13. #13
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  14. #14
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    >> http://www.eskimo.com/~scs/cclass/int/sx4ab.html

    Ohh, sting... So how come when I replace all my narrow beams with pluses, everything still works the same?

  15. #15
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    BTW: Nevermind my last say, and good link, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Heh...
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 04-04-2006, 07:16 AM
  2. Help with my function (Heh)
    By phatsam in forum C Programming
    Replies: 9
    Last Post: 03-23-2006, 01:26 PM
  3. How long have you guys been working with C/C++??
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 08-01-2003, 03:41 PM
  4. Dual Monitor question heh
    By RoD in forum Tech Board
    Replies: 2
    Last Post: 07-11-2003, 01:18 PM