(注:以下教程适合初学者,介绍C#。下载.NET Framework 2.0 版本到你的Windows 
2000 SP4 或者Windows XP SP2。)


①打开notepad.exe

②输入以下内容:

class HelloWorld
{
    static void Main()
    { // display characters
        System.Console.WriteLine ( "C# is fun to learn." );
    }
}

③储存名档为hello.cs

④进入"C:\Windows\Microsoft.NET\Framework\v2.0.50727" 里头,执行csc.exe 
如下:

csc.exe hello.cs    [  回车键 ]

这时它会显示以下讯息:

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

⑤输入dir hello.*    

这时它会显示以下讯息:

hello.cs
hello.exe

注:若你见不到hello.exe, 你一定除错hello.cs,一直得到为止。

⑥输入hello.exe

这时屏幕上会显示什么讯息?

请诸位试试回答吧......