实验一
实验1.1
编写控制台程序,输出hello world!
using System;
namespace ch01
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}
实验1.2
编写窗体程序,让用户输入姓名,点击按钮时下方文本框出现“xxx欢迎你进入C#世界!”
使用以下几个控件
将label的文本改为姓名,同理,按钮的文本改为确定。
双击按钮,进入代码界面
using System;
using System.Collections.Generic