Why doesn't Console.Writeline, Console.Write work in Visual Studio Express?
I just open a console application and I type
Console.WriteLine("Test");
But the output window doesn't show this. I go to the output window with Ctrl+W,O
But nothing shows up when I run my program, am I nuts or is this not supported in the visual studio 2010 express?
Console.WriteLine
将输出写入由应用程序打开的控制台窗口(想象一下打开命令提示符时出现的带白色文本的黑色窗口)。请改为尝试System.Diagnostics.Debug.WriteLine
。
Go to properties in you own project in Solution Explorer
window and choose application type and look for Output Type
and change it's value to Console Application
. This will make console screen besides your form. If you close console screen, your form will be closed too.
Good luck.
Perhaps the console is clearing. Try:
Console.WriteLine("Test");
Console.ReadLine();
And it will hopefully stay there until you press enter.
链接地址: http://www.djcxy.com/p/66308.html上一篇: 如何使用CMAKE从命令行在Windows上构建x86和/或x64?
下一篇: 为什么Console.Writeline,Console.Write不能在Visual Studio Express中工作?