Thread: return

  1. #1
    Registered User
    Join Date
    Mar 2002


    Is there a command that returns you back to main from a function within a funtion etc.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Yes, but you don't want to use it. I'm sure that you can have your functions return in a sensible manner without having to jump all over creation

    My best code is written with the delete key.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    I find it best to use all global variables and one huge 'main' function. Then I just use goto whenever I need to get some place. I really don't need to use global variables, but I find it best, that way, if someone ever goes to use my code, and they add a function, my variables are all available to that function.

    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 10:00 PM
  2. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  5. Algorithm to walk through a maze.
    By Nutshell in forum C Programming
    Replies: 30
    Last Post: 01-21-2002, 01:54 AM