Thread: To Hammer

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    28

    To Hammer

    jerry, please can you use code tags for the code (see my sig for an example). It helps make the code readable by keeping the layout as it is in your editor. Thanks.



    Hammer could you please explain "code tags". I don't know what
    you mean by "see my sig for example".

    jerryvtss

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    At the beginning of your code type:

    code (but surrounded by [ ] )

    At the end of your code, type:

    /code (but surrounded by [ ] )

    BTW: it must be a forward slash / (not a backslash \)
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    28
    OH I get it!

    Thanks

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: To Hammer

    >Hammer could you please explain "code tags". I don't know what you mean by "see my sig for example".
    I see the code tags bit is covered already, so I'll clear up your second question.... sig is short for signature, the section of text that appears at the bottom of all my messages. Hopefully, you'll recognise what it's all about now
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Registered User foniks munkee's Avatar
    Join Date
    Nov 2001
    Posts
    343
    *gasp* - but.. how would they read my humourous Brak quote!?
    "Queen and huntress, chaste and fair,
    Now the sun is laid to sleep,
    Seated in thy silver chair,
    State in wonted manner keep."

  6. #6
    Unregistered
    Guest

    hey

    how did you do tha ??

    i mean, how did you type [*code*] (without stars)
    and make it appear as it is ??

  7. #7
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: hey

    Originally posted by Unregistered
    how did you do tha ??

    i mean, how did you type [*code*] (without stars)
    and make it appear as it is ??
    It's a secret If we told you.... well, y'know what we'd have to do!
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  8. #8
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >It's a secret If we told you.... well, y'know what we'd have to do!
    If we told you then we'd have to remember that you know. Therein lies chaos.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MC Hammer
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 07-06-2003, 05:17 PM
  2. address book
    By datainjector in forum C Programming
    Replies: 6
    Last Post: 12-01-2002, 08:19 PM
  3. Hammer, a question for you - var scope
    By * in forum C Programming
    Replies: 21
    Last Post: 06-24-2002, 09:32 AM
  4. Hammer - Thank you so much!!!
    By HOWY in forum C Programming
    Replies: 2
    Last Post: 06-23-2002, 04:29 AM