Problem with windows console when running.

This is a discussion on Problem with windows console when running. within the C++ Programming forums, part of the General Programming Boards category; I noticed this when I first started making programs. I forgot what the code was to make the windows console ...

  1. #1
    1479
    Join Date
    Aug 2003
    Posts
    253

    Question Problem with windows console when running.

    I noticed this when I first started making programs. I forgot what the code was to make the windows console wait for you to press any key before it exits. When I ran my first program, Hello World, it happened so fast I didnt even get to see it. Sorry if this is a stupid question but I don't know exactly what to look for or how to go about looking for it.

    Any suggestions?
    Knowledge is power and I want it all

    -0RealityFusion0-

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    popular topic, board searches are a awsome tool.

    http://cboard.cprogramming.com/searc...der=descending

  3. #3
    1479
    Join Date
    Aug 2003
    Posts
    253
    Ohhh....k.

    Thanx! Now I remeber! It was System("PAUSE")
    Knowledge is power and I want it all

    -0RealityFusion0-

  4. #4
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    There are several options, and everyone will have a personal preference. There are many threads that the different ways have been debated in, if your interested in expanding your knowledge on the different methods used just follow that search and read around.

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    Check the faq here:

    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    System("Pause") is not considered a very good method.

  6. #6
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by 7stud
    Check the faq here:

    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    System("Pause") is not considered a very good method.
    Which would be why i told him to read around.....

    For what he is doing pause will work fine.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One process with two console windows
    By siavoshkc in forum Windows Programming
    Replies: 8
    Last Post: 01-30-2009, 03:13 PM
  2. Console problem
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 12-22-2005, 09:41 AM
  3. Dialog Windows Hidden Problem :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 11-27-2002, 10:11 PM
  4. Windows Console!
    By Perica in forum Windows Programming
    Replies: 15
    Last Post: 10-18-2002, 08:08 PM
  5. Windows 98 problem
    By Hannwaas in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 12-30-2001, 11:01 AM

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