C#学习1
首先来写个个helloworld吧,代码很短
[csharp]
namespace helloworld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!"); //将指定的字符串值(后跟当前行终止符)写入标准输出流
Console.ReadLine(); //从标准输入流读取下一行字符
}
}
}
再来弄个简单的图形界面的,实现用户登录的提示
[csharp]
namespace Wpfhello
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Welcome," + textname.InputHitTest);
}
}
}
补充:软件开发 , C# ,