Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help a n00b

  1. Aug 19, 2005 #1

    JamesU

    User Avatar
    Gold Member

    Every time I compile and run a program in Dev-C++ Command prompt only opens for less than a second and closes immediately. can anyone help?
     
  2. jcsd
  3. Aug 19, 2005 #2

    dduardo

    User Avatar
    Staff Emeritus

    START->RUN

    Type: cmd (assuming your on windows xp)
    Type: cd <directory where program is located>
    Type: <program name>
     
  4. Aug 19, 2005 #3
    Use getch() ?
    Code (Text):

    #include<stdio.h>
    #include<conio.h>
    int main()
    {
        printf("Hello World");
        getch();
        return 0;
    }
     
    -- AI
     
  5. Aug 19, 2005 #4
    Programs run until they get to the end of the code, use getchar()
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Help a n00b
  1. Ping help (Replies: 4)

  2. DDR help (Replies: 7)

  3. RAM Help (Replies: 2)

  4. CPU help (Replies: 12)

  5. WavePad help (Replies: 2)

Loading...