Hexidermis

This is a discussion on Hexidermis within the C++ Programming forums, part of the General Programming Boards category; Just wodering if there is anywhere to learn about hexidermis, or whatever it is called. like the addresses or variables ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    132

    Hexidermis

    Just wodering if there is anywhere to learn about hexidermis, or whatever it is called. like the addresses or variables and stuff. cheers in advance.

    Hugo.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,126
    I never heard of 'hexidermis'.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    132
    lol u know what i mean.

    the hex number part of it or something. ill try to find the name later but if u know wht i mean please help me .

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    903
    Hexadecimal numbers... Basically just read on pointers and hexadecimal numbers (also called hex numbers or base 16 numbers).

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    35
    in short, we are accustomed to counting in multiples of ten. we use the digits 0-9. once we need to count past nine we add another decimal place, giving us the number 10, hexidecimal is exactly the same except that it uses the digits 0-F (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F). a total of 16 digits. in hexidecimal you would count ...8,9,A,B,C,D,E,F,10,11,12... where 10, 11, and 12 are equivalent to 16, 17, and 18 respectively.

    for more info

    http://www.lyzrdstomp.com/binary/hex1.html

    or search google

    "base number conversion tutorial hexidecimal"

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    FYI Hugo,

    There are two main reasons for using hex.
    As you probably know, the computer uses binary (base-2) internally.

    1. It is easier to convert between hex and binary, than to convert between decimal and binary. If you memorize the conversions between 0 and F, you can do hex-binary conversions of any size in your head! If fact, you already know 0 and 1, so you only have to memorize 14 more. And, some are really easy to remember... like 5=0101, A=1010, F=1111. Then, there are the power-of-two numbers... 2=0010, 4=0100, 8=1000. Now, you only have to learn 8 more conversions and you've got it!

    2. Hex is built into cin and cout, and you can use hex directly in your source code. (Binary is not so simple in C++.)


    In addition, Hex is easier to write and speak.... AAAA is a lot easier than 1010101010101010. And, that's only 16 bits! (And, just for fun, AAAA hex = 43690 decimal. )

    The calculator that comes with Windows can do binary, octal, decimal, and hexadecimal conversions if you set it to the scientific view.

    You can do an awful lot of C++ programming without ever using binary, octal, or hex. When you work with Bitwise Operators, hex is handy. And, if you work in the hardware world (like me), you deal with individual bits every day. Conceptually, we are usually working with bit-states or bit-patterns... We aren't thinking of the hexadecimal numbers as "numbers"... It's usually "Is bit 3 high or low?"

    One last comment - Don't try to "save a number in hex format." All numbers are stored in binary. By default, C++ assumes that you are entering decimal numbers, and it displays numbers in decimal by default. So, the number-base is only important during input/output. You can enter one number in hex, another in decimal. Then add them together (without worrying about their base). And finally, display the result in octal if you wish.
    Last edited by DougDbug; 06-02-2006 at 05:05 PM.

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,755
    > I never heard of 'hexidermis'.
    It's the art of taking dead programs, stuffing them and displaying them in appropriate natural settings inside glass cabinets.
    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.

  8. #8
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    No, no. That's "hexidermy". "Hexidermis" is actually quite unknown to most people. You see common belief is that the human body only has two layers of skin. The epidermis and the dermis. Recent studies have shown that they're are actually 22 layers of skin, which are much thinner than the previous beliefs. The sixteenth layer being, of course, the "hexidermis". Recent studies have also shown that similar humor to the humor just posted could be described as "hellalamenis".

    Anyway, here is a little model of how to convert to other bases from decimal.
    Attached Images Attached Images  
    Last edited by SlyMaelstrom; 06-03-2006 at 03:20 AM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

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