Flash display in DOS screen

This is a discussion on Flash display in DOS screen within the C++ Programming forums, part of the General Programming Boards category; Hi All, I'm new to C++ programming. Very raw compared to you all. I have Dev-C++ compiler on my win ...

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    5

    Question Flash display in DOS screen

    Hi All,

    I'm new to C++ programming. Very raw compared to you all. I have Dev-C++ compiler on my win XP. When I compile and run a program, the DOS screen flashes for a micro-second and disappears. I'm not able to see the results of my programs. Kindly help. Thanks.

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Please read our forum rules and FAQ before posting.
    Last edited by RoD; 02-23-2004 at 12:47 AM.

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    5

    Flash display in DOS screen

    Hi

    Thanks for replyoing. But still I'm not able to find help to my problem. Kindly help. Thanks in advance.

  4. #4
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    You need to use a function to "pause" or "delay" the end of a program. This has been covered so many times you couldnt calculate the number on a nasa computer. Use the FAQ/board search; obviously you have not made the effort we require to help. Were not going to give you code, make an effort.
    Last edited by RoD; 02-23-2004 at 12:43 AM.

  5. #5
    Registered User
    Join Date
    Feb 2004
    Posts
    5

    Flash display in DOS screen

    Hi

    Thanks a lot for your help.

    Your FAQ is not that user-friendly to find whatever you've said. I still dont find it. Just because you know where it is, doesnt make me dumb or doenst mean I didnt try.

    I never thought you guys would sound so rude to a newcomer. This is really bad. I'm disappointed. Bye.

  6. #6
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Your right, its not user friendly, its impossible to find anything.

    WOW, TWO SECONDS THATS WAY TOOOOO LOOOOONG OMG DOODZ!!!!

    Here:

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

  7. #7
    Registered User
    Join Date
    Feb 2004
    Posts
    5

    Flash display in DOS screen

    Enough of sarcastic nonsense. I was highly impressed with the site and thats why I logged in to the forums. Hope the members of the forum are not as bad-mannered as the moderators.

    We'll stop this thread with this. Thanks a million for your kind and supportive response.

  8. #8
    Registered User
    Join Date
    Feb 2004
    Posts
    5

    Flash display in DOS screen

    I've written my first C++ program. I went throught he tutorials out of which half was above my head. This disappearing screen would be a problem for only a first time user. You cant expect a beginner to read through all of the FAQ pages and tutorials before he tests his first C++ program. Can you? When I'm stuck with opening the door of a car what's the point in telling me to get the manual inside the car?

    Enough of sarcastic nonsense. I was highly impressed with the site and thats why I logged in to the forums. Hope the members of the forum are not as bad-mannered as the moderators.

    We'll stop this thread with this. Thanks a million for your kind and supportive response.

  9. #9
    Registered User
    Join Date
    Nov 2003
    Posts
    26

    ...

    The window disappears because once the program is done running it has no reason to remain open. You can use a function to hold the window open for you like
    Code:
    system("PAUSE");
    on a windows box. You can also just open a command prompt, navigate to the folder containing your exe, and run it by typing the name of the program in and hitting enter. When done in the latter manner the window will not close until you close it.
    Regards,
    ~Joshua Norton

  10. #10
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    You don't seem to realize that we who help you here are volunteers. We do this in our own free time. And the question you asked comes up very frequently. We like to answer programmning problems, but we don't like to answer the same problem over and over.

    I took a look at the FAQ. Your question is under "How do I... (Level 1)" with the title "... make the program wait for a keypress?" which should be clear enough.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pipe to file and still display to screen?
    By chrispyone in forum Tech Board
    Replies: 9
    Last Post: 03-16-2005, 03:27 PM
  2. Replies: 1
    Last Post: 02-05-2003, 09:16 PM
  3. Full screen dos box?
    By Shadow in forum C Programming
    Replies: 8
    Last Post: 04-19-2002, 04:30 PM
  4. Replies: 1
    Last Post: 04-01-2002, 03:08 PM
  5. Replies: 2
    Last Post: 12-26-2001, 12:08 PM

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