I know everyone hates "GOTO" but...

This is a discussion on I know everyone hates "GOTO" but... within the C++ Programming forums, part of the General Programming Boards category; I am only new and learning and am trying to use a GOTO ...then why don't you set a goal ...

  1. #16
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    I am only new and learning and am trying to use a GOTO
    ...then why don't you set a goal for yourself and try to learn to program correctly?

    but what im saying is how do i jump out of a second function and back into the beggining of the first?
    Since you want to execute the beginning of your program more than once, can you think of a program structure that will allow you to do that? How about a function? Don't functions contain things you want to execute more than once? Put everything at the beginning of your program in a function, then start your program by calling that function, call your second function, then call your first function again.
    Last edited by 7stud; 02-13-2006 at 10:17 AM.

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

Similar Threads

  1. I think my compiler hates me
    By Matty_Alan in forum C Programming
    Replies: 4
    Last Post: 07-15-2007, 01:22 AM
  2. Pet Hates
    By twomers in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-21-2006, 05:08 AM
  3. The taskbar hates me messing around!
    By Queatrix in forum C++ Programming
    Replies: 7
    Last Post: 09-12-2005, 08:58 PM
  4. Who on this board hates me?!
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 41
    Last Post: 01-28-2003, 03:41 PM
  5. Cat hates getting a bath
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 10-23-2001, 09:15 PM

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