Thread: need a bit of help

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    266

    need a bit of help

    when you type something like that
    Code:
    placeholder:
    -what is it called?


    -does this make it go back to that line of code by typing this,ir am i confused?
    Code:
    goto placeholder;

    one last thing..
    when you do type it, do you include a semicolon to the line?
    Code:
    placeholder:
    // OR
    placeholder:;

  2. #2
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282

  3. #3
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    i have never heard for such thing...
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    That's cause people don't teach them. Goto statements are the kind of things that appear to make things a lot easier because they're so straight forward. They aren't though.

    Just try and remember yourself as a brand new programmer. I'm sure at some point you wondered "Ok... I got this answer, but I wanted this to happen... so how do I goto this part again?"

    I guess the moral to this is... don't smoke crack.
    ... or use goto statements.
    Sent from my iPadŽ

  5. #5
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    goto is old old school
    It is still in C++ for legacy purposes I believe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bit manipulation
    By Neo1 in forum C++ Programming
    Replies: 8
    Last Post: 03-24-2008, 11:53 AM
  2. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  3. Bit processing in C
    By eliomancini in forum C Programming
    Replies: 8
    Last Post: 06-07-2005, 10:54 AM
  4. Bitwise Operators - Setting and Retreiving a Bit
    By Spono in forum C Programming
    Replies: 2
    Last Post: 11-04-2003, 02:09 PM
  5. Bit Manipulation Questions
    By CPPNewbie in forum C++ Programming
    Replies: 7
    Last Post: 08-12-2003, 02:17 PM