初学C#,写了个简单的hello world程序,为何在命令行窗口停不住呀?一闪而过.谢谢先
---------------
代码如下:
using System; class hello
{ static void Main()
{
Console.WriteLine("please enter your name:");
Console.ReadLine();
Console.WriteLine("hello,world!"); }
}
---------------
代码如下:
using System; class hello
{ static void Main()
{
Console.WriteLine("please enter your name:");
Console.ReadLine();
Console.WriteLine("hello,world!"); }
}
Console.ReadLine();
Console.WriteLine("hello,world!");
Console.ReadLine();
Console.ReadLine();
如果你是在VS环境中
就是ctrl+F5