Help a newbie?

This is a discussion on Help a newbie? within the C Programming forums, part of the General Programming Boards category; I'm very new to C programming and trying out the tutorial on this site, but I'm stuck because i don't ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    3

    Help a newbie?

    I'm very new to C programming and trying out the tutorial on this site, but I'm stuck because i don't really understand the concept of user inputs. Whenever I try inputting a number in and hitting enter, DOS just closes the entire program. Do you have to hit sonething else to input something in or can you even input at all?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    When you run a console program via Windows, the DOS window will close when it's done running. To avoid that, you might want to run your program directly from the command line.

    Code:
    Start -> Run... -> cmd (Use "command" instead of cmd if it does not work)
    If you can navigate over to where your program is, the window should not close on you when you run it.
    Last edited by MacGyver; 03-28-2007 at 11:26 PM.

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    3
    But can I run it in Bloodshed Dev C? The Dos prompt looks too confusing to me to look for my program there.

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Mar 2007
    Posts
    3
    thanks for the faq link, since I looked for my question everywhere

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 06:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 06:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 11:53 AM
  4. C++ newbie / linux not so newbie question
    By goldmonkey in forum C++ Programming
    Replies: 7
    Last Post: 12-13-2003, 11:27 AM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21