C#新手上路的疑问,不能正常显示输出信息
yjpya 2007-05-10 11:32:41 各位朋友,代码如下,下面这段代码是跟着教程来进行输入 的,但为什么 用了Console.WriteLine这句代码之后,好像程序什么反应也没有,教程说,应该有一句提示才对,但我的程序运行后,什么提示也没有,这是为什么呢?请各位朋友赐教,多谢!!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Console.WriteLine("Please enter your name:");
Console.ReadLine();
Console.WriteLine("Welcome to you!");
}
}
}