View Poll Results: Should I smoke crack while programming?

Voters
25. You may not vote on this poll
  • Yes! It gives you that "Creative Edge"

    4 16.00%
  • Why are you asking me these questions?

    5 20.00%
  • Mommy took my crack pipe! *Cries*

    2 8.00%
  • You are so stupid.

    14 56.00%

Hehe, look at this code. (Not looking for help)

This is a discussion on Hehe, look at this code. (Not looking for help) within the C++ Programming forums, part of the General Programming Boards category; It doesn't matter whether you give types and variable names or just types in the function prototype. It works exactly ...

  1. #16
    Registered User InFeStEd-ArCh0n's Avatar
    Join Date
    Apr 2002
    Posts
    63
    It doesn't matter whether you give types and variable names or just types in the function prototype. It works exactly the same either way. Although putting the variable name wastes time.
    -Mike
    {InFeStEd-ArCh0n}

  2. #17
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    I like to put the names in if I have decriptive names. The whole idea is that you should be able to look at the prototype and see what the function will do for you. This works better if you have names in there.

  3. #18
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    sorry for getting back to the subject of goto's, but just as Prelude said, people who don't know how to use them shouldn't use them. The problems I see with it, is sometimes the labels overlap. Another thing is it is hard to debug, and hard to pick through your code. I use goto like once or twice in most of my projects.

  4. #19
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    I don't think goto's are the problem. maybe it's a bad programming technique but it was used in earlier languages. the compiler compiles them the same right? I know the machine has different types of memory levels/settings or something... anyway, I find it normal to use them, not regularly, but for quick jumps from a code fragment to another to save time processing in a program. thinking about this for a sorting algorithm now...
    think only with code.
    write only with source.

  5. #20
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336

    Post GOTOs

    For text-based adventure games goto canreally make things confusing but they were used often back in the old days for one of the greatest text games ever........... ZORK!!!!
    Give me a bad reputation!!!

  6. #21
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163
    i just voted on the crack pipe one because i like it
    +++
    ++
    + Sekti
    ++
    +++

  7. #22
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    dont i love the result
    it is so true

  8. #23
    Registered User InFeStEd-ArCh0n's Avatar
    Join Date
    Apr 2002
    Posts
    63
    First we argue about goto's, now we're talking about Crack. This is truly the programming messageboard for me.
    -Mike
    {InFeStEd-ArCh0n}

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 09:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 08:34 AM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

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