Thread: help running a program from compiler

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

    help running a program from compiler

    Hi!

    I've been reading the tutorials on cprogramming.com, I took the code from the second tutorial where you can add your age and it tells you if you are young or old, etc.
    I put in my age and I hit enter, and immediately the screen goes away. I don't even hardly have time to read what it says after I input my age and hit enter. Is there anyway I can stop it from exiting out?

    Thanks!!

    Jordan

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    Open a console window first... then type the name of the executable in the directory where it resides. Then it will run and the window will remain open...

    if you desire to double click the executable, then you will need to read the FAQ on pausing a program, and pause your program right before it ends.
    Blue

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Running another program in windows
    By Mr_Jack in forum C++ Programming
    Replies: 4
    Last Post: 01-22-2004, 02:01 AM
  4. Why is my program running away?
    By badkitty in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2001, 04:27 PM
  5. Running program
    By muffin in forum C Programming
    Replies: 5
    Last Post: 08-30-2001, 10:57 AM