المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Stop the CONSOLE at the end of the debut



C# Programming
07-16-2009, 10:30 PM
http://www.barakasoft.com/script/Forums/Images/smiley_laugh.gif I have used Microsoft Visual C# 2008 Step by Step book to learn C# be sides from the writer adding in text to make it longer, like instead of saying Chapter 12. He writes a 50-word title and so on. However, this is not the problem. The problem is they write the tutorial programs to the console, which I cannot see, work because the console just blinks on and off and you cannot see what you did. Is there a way to make the console stop for 10 seconds or stop at the end of the program so I can see it?

Console.WriteLine("default constructor called:");
Console.Write("Press ENTER to finish.");
Console.Read();
This works to stop the console sometime for one line, but there must be a better way. If someone know if would be good to post it. I cannot find an easy way to do this.
http://www.barakasoft.com/script/Forums/Images/smiley_shucks.gif