Thread: t-shirt

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    242

    t-shirt

    what do you guys think of this as a c++ t-shirt? i tried finding something else online but wasn't really happy with any, so i came up with this, which i thought was at least adequate. anyone have anything better or improvement ideas?

    CustomInk.com design: cpp2 created by info

    p.s.: pls someone let me know if that link doesn't work, and i'll just type out the code

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    You forgot the std:: infront of copy(...)
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    242
    hmmm... it runs in VS08 without it, and in general, I've had the impression that you don't need it before library functions. But it hasn't been terribly long since I got away from just throwing "using namespace std;" all over the place, so I'd be interested to hear more about what's up with the use of std:: in connection with functions like that.

    VS08 of course also runs the code with the syntax std::copy(...)

    So, hmmm... is the code better with or without the std:: before copy()?

  4. #4
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    All standard functions are in the std namespace.
    Woop?

  5. #5
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    it might run it without explicitly referencing the namespace if you've included "using namespace std;" earlier in your code.
    If you haven't (and it might be in some header file, conceivably) you should get a compiler error.

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    242
    it's presumably in some header file, then, as there's really nothing else that it's linked with when i compile.
    i'll either add that, then, or else go with the usual using declaration here since the use of std:: is so frequent.

  7. #7
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    do a tshirt with the slogan

    std::tshirt

    i did it anyway for the hell of it, thats me all embarked on a new fashion design career > magic tshirt
    Last edited by rogster001; 03-31-2010 at 06:41 AM.

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    242

  9. #9
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Or you could create a C t-shirt that says:
    Code:
    do {} or do_not(), there is no try {}
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  10. #10
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    Or this:
    gcc tshirt.cpp

    tshirt.cpp: warning: in function 'main':
    tshirt.cpp: warning: 'obscure programming joke' undefined
    Consider this post signed

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    void main()

    It's the killer joke on any C++ gathering.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  12. #12
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You need to replace those goofy math symbols on the front with something more catchy. Eg, if you play this gif backward, it obviously says "The ultimate C/C++ T-shirt".
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    242
    i'm liking rogster's std::tshirt
    but then we definitely have to put std::copy on the back.

    bernt's also made me laugh.

  14. #14
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    Just put a picture of a really hot girl with a floppy disk in hand, and it will sell better than any of these lame jokes. The back can read, "She programs in C," or something.

  15. #15
    Registered User
    Join Date
    May 2009
    Posts
    242
    lol, sure, but i'm not really even trying to sell them. i just want to create a C++ t-shirt that i'm personally happy with, then probably give away a few to programmer friends/relatives once i'm happy with it--hence also my reference on the front to the P vs. NP problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I'm trying to count the frequency of the phrase "ing"
    By thefreeman1159 in forum C Programming
    Replies: 14
    Last Post: 09-23-2008, 11:58 AM
  2. Calling functions help
    By ForlornOdium in forum C++ Programming
    Replies: 14
    Last Post: 09-29-2003, 08:40 PM
  3. Clean Jokes
    By stevey in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 04-27-2002, 07:13 PM