CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: C++ Comic

  1. #1
    Join Date
    Nov 2009
    Posts
    0

    C++ Comic

    This is a webcomic I drew making a C++ joke.
    My regular readers don't seem to get it, was just curious what you guys thought of it:
    http://www.stupidinventor.com/2009/1...-bat-computer/

    Thanks,
    Zachary

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: C++ Comic

    It might be funnier if you had the correct C++ equivalent for the formula. Or maybe not.

  3. #3
    Join Date
    Nov 2009
    Posts
    0

    Re: C++ Comic

    What do you mean?
    I use the POW function just like that in a recent C++ project...

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: C++ Comic

    Take the E=MC2 formula and convert it to a C++ statement.

    Does it look like POW( x, y )?

    Maybe a C++ guy takes this too literally so it's not as funny?

    Consider the joke about "There are only 10 kinds of people in the world: those that understand binary and those that don't".

    That joke is funny because it's technically accurate.

    I wonder if your joke would be funnier if more accurate?

    Btw, nice job on the comic strip in general.

  5. #5
    Join Date
    Nov 2009
    Posts
    0

    Re: C++ Comic

    I'm sorry, I'm only an amateur programmer (still in school) so I'm not sure what you mean.
    I recently had to do a project where you input the value of x and y and the compute the value of x to the y power...

    So all I had to do was have the user cin the x and y, and then cout the POW(x,y)...

    So couldnt you do E = M * POW(C,2)?

    Again Im only in my second C++ class so my apoligies for the amateur understanding.

    I have seen that binary shirt and love it.

    Thanks! Glad you like it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured