CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Posts
    41

    Question Close itself-Console

    I wonder why a Console Application after executed always display "Press any key to continue..."
    I'd like it to close itself right after that needless of my key input.

    Could someone offer me a chance to know ? Thank you

  2. #2
    Join Date
    Dec 2010
    Posts
    12

    Re: Close itself-Console

    Are you talking about when debugging the application ? Because while running the application directly, I didnt faced any such issue.

  3. #3
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Close itself-Console

    They don't. If a program asks for input to close then the programmer has added to code to accomplish that. When your main method exits the program will close.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured