ch3_变量和表达式.pptVIP

  • 0
  • 0
  • 约8.09千字
  • 约 38页
  • 2017-11-26 发布于河南
  • 举报
ch3_变量和表达式

命名空间 using 语句使用示例(1) // 在这里引入命名空间 System 中的所有名字,以便使用其中 // 的 Console 类进行输入输出。 using System; class Program { static void Main(string[] args) { Console.WriteLine(“Hello world!”); } } 命名空间 using 语句使用示例(2) namespace StudentManagement { struct StudentInfo { /* .... */ } } // 将 StudentManagement 引入全局名字空间 using StudentManagement; class Program { static void Main(string[] args) { StudentInfo someBody; someBody.Name = “张三”; someBody.Sex = “男”; 当名称没有包含在名称空间时,名称将定义在全局名称空间中。 命名空

文档评论(0)

1亿VIP精品文档

相关文档