1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Problem getting programs to run

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

  1. davbaseball

    davbaseball New Member

    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

    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

    It works fine now, thanks for the help!
     

Share This Page