Thread: Another Newbie Question

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    3

    Another Newbie Question

    Hi
    sorry but i have another question ...
    What is the C Command for closing the application/ending the program?

    I program a small "Who wants to be millionaire" game program and if you answer 3 false answers you can read "you lost", but I do not know the command for really ending the game ^^

    I greatly appreciate any help
    bye

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Well all you need to do is return something from your main program. There are other functions like exit() etc..., but in essence, all you need to do is "return" out of any functions that you're in the middle of, and ultimately return something from main.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 06:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 04:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 04:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM