14. .NET Framework类库(续) 所列出的命名空间包括以下这些:System:树的根,此命名空间包含 .NET Framework 类库中所有其他命名空间System.Web:此命名空间包含对于创建 Web 应用程序有用的类型,并且与很多命名空间一样,它有下级命名空间System.Data:此命名空间中的类型构成了 ADO.NET
15. .NET Framework类库(续) 所列出的命名空间包括以下这些:System.Windows.Forms:此命名空间中的类型组成了Windows窗体,它们用于构建 Windows GUISystem.EnterpriseServices:此命名空间中的类型提供了某些类型的企业级应用程序所需要的服务System.XML:此命名空间中的类型提供对创建和使用由XML定义的数据的支持
16. 硬件
CPU:Intel Pentium Ⅱ系300MHz,推荐Intel Pentium Ⅲ系列600MHz;
RAM:96MB,建议128MB以上;
硬盘空间:250MB以上。
操作系统
Windows2000 Server/Advanced Server
Windows NT 4、Windows 2000
Windows XP
Windows vista 以上1.1.4 .NET Framework平台的搭建
26. using System;
namespace ConsoleTest
{
class HelloName
{
private string s="张三";
private int i=5;
public HelloName()
{
Console.WriteLine("hello {0},I have {1} books!",s,i);
}1.2.3 C#应用程序举例
27. static void Main(string[] args)
{
int i=1;
Console.WriteLine("The first is:{0}",i);
Console.Write("Please enter your name: ");
string strName = Console.ReadLine();
Console.WriteLine("Hello " + strName+" !");
HelloName hello=new HelloName();
hello.i=6;
Console.WriteLine("hi {0},I have {1} books!",hello.s,hello.i);
HelloMe me=new HelloMe();
me.Welcome();
Console.Read();
}
}
28. class HelloMe
{
private string s="王五";
private int i=10;
public HelloMe()
{
Console.WriteLine("hello {0},I have {1} books!",s,i);
}
public void Welcome()
{
i=11;
Console.WriteLine( "hi I have {0} books,Welcome to using C#.NET!",i);
}
}
}
29. 运行结果如图所示:
30. 上机
31. 上机
32. 上机
33. 控制台程序基本框架using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
}