Menu

I need help starting my first program

D K
2008-01-25
2012-09-26
  • D K

    D K - 2008-01-25

    When I compile and run this with Dev C++ 5 beta, nothing happens

    main(){printf("Hello World\n");}

    Help Me

     
    • Wayne Keen

      Wayne Keen - 2008-01-25

      Why do you expect that to work? What happened? Did you get error message?

      I suggest you take some time and look at the thread titled "Please
      Read Before Posting a Question" - it will tell you

      (1) How to do a simple "Hello World" program

      (2) How to ask a question that conveys needed information.

      Wayne

       
    • cpns

      cpns - 2008-01-25

      I bet something did happen.

      Hint:

      What in your experience happens in Windows when a program runs to completion?
      How long do you think it takes for your program to run to completion?
      How much do you think you will see in that time?

       
    • dolph

      dolph - 2008-01-25

      as cpns says the program was well executed, but it was dam too fast to see it happening :)
      just add this command: getchar(); ,which asks from you to press 'enter' before the program ends.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.