Re: Console Applications
From: William Stacey [MVP] (staceywREMOVE_at_mvps.org)
Date: 03/24/04
- Next message: Hayato Iriumi: "Re: Console Applications"
- Previous message: Andreas Håkansson: "Re: no linebreaks where expected"
- In reply to: Michael W: "Console Applications"
- Next in thread: Hayato Iriumi: "Re: Console Applications"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 20:19:41 -0500
If you write something like Console.Writeline("hello"); You need to add a
Console.Read() as last line so the Console windows does not write hello and
close (it closes automatically in debug mode after it runs.) The
Console.Read or Console.Readline will wait for user input (i.e. enter)
before closing so you can see what you output to console. HTH
-- William Stacey, MS MVP "Michael W" <anonymous@discussions.microsoft.com> wrote in message news:725E4CDE-A577-4E43-A873-A767FFF49166@microsoft.com... > I'm a complete newbie at programming. I chose to learn C# as my programming language. Every book I purchase starts with console applications. Each time I try to run the apps that I build, it will only display for a few seconds then it will disappear? I'm running Windows XP and have VS.net. Is there some way that I can view the output of my console applications with out it shutting off on me? I'm getting discouraged because I want to build Windows apps and not console apps right now? I can't seem to run any command line apps. I'm stuck because these books teach you the basics of the language using console apps. I want to skip past this but I miss out on so much. Please help!!!!
- Next message: Hayato Iriumi: "Re: Console Applications"
- Previous message: Andreas Håkansson: "Re: no linebreaks where expected"
- In reply to: Michael W: "Console Applications"
- Next in thread: Hayato Iriumi: "Re: Console Applications"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|