65.9K
CodeProject is changing. Read more.
Home

When you run a console application from visual studio the application run so fast and the console closes that you never see the output.

starIconstarIconemptyStarIconemptyStarIconemptyStarIcon

2.00/5 (1 vote)

Feb 4, 2010

CPOL
viewsIcon

5360

Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.

Add a call to Console.Readline() or Console.Read() at the end of your Main function this will prever the console from closing until the user presses a key or enter.