Problem getting programs to run

Discussion in 'C' started by davbaseball, Aug 10, 2007.

  1. davbaseball

    davbaseball New Member

    Joined:
    Aug 10, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Im new to programming so naturally i started off with "hello world", but when i try to run it, the ms-dos window thats supposed to display it flashes across the screen for a bout a fraction of a second and then closes.
    By the way, im using Bloodshed Dev--C++ 4.9.9.2 to write and compile programs.
    any help?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Use a function for a userinput like scanf, getch, getche before the program ends so that you can see the output from the program.
     
  3. davbaseball

    davbaseball New Member

    Joined:
    Aug 10, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    It works fine now, thanks for the help!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice